Merged in feature/localstackands3object (pull request #54)

LocalStack and S3 Objects

* firstround

* cleanupintegration

* tidyports
This commit is contained in:
Michael McGuinness
2025-02-06 15:00:26 +00:00
parent 9e6328d8f9
commit e146725825
17 changed files with 381 additions and 128 deletions
+21 -15
View File
@@ -21,16 +21,30 @@ tasks:
up:test:
cmds:
- docker compose -f {{.TEST_COMPOSE_FILE}} up --no-recreate -d
refresh:
cmds:
- task: down
- task: up
up:
cmds:
- task docker:build
- docker compose -f {{.LOCAL_COMPOSE_FILE}} up --no-recreate -d
- task: init
init:
cmds:
- aws sqs create-queue --queue-name $QNAME_DOCUMENT_CLEAN
- aws sqs create-queue --queue-name $QNAME_DOCUMENT_INIT
- aws sqs create-queue --queue-name $QNAME_QUERY_RUNNER
- aws s3 mb s3://$BUCKET_IN
- aws sqs create-queue --queue-name $QNAME_DOCUMENT_INIT
- |
aws s3api put-bucket-notification-configuration \
--bucket $BUCKET_IN \
--notification-configuration '{
"QueueConfigurations": [{
"QueueArn": "arn:aws:sqs:us-east-1:000000000000:document_init",
"Events": ["s3:ObjectCreated:*"]
}]
}'
- aws sqs create-queue --queue-name $QNAME_DOCUMENT_CLEAN
- aws sqs create-queue --queue-name $QNAME_QUERY_RUNNER
down:test:
cmds:
- task: down
@@ -51,15 +65,7 @@ tasks:
- docker volume rm deployments_db-data
lint:
cmds:
- task: lint:file
vars:
COMPOSE_FILE: '{{.LOCAL_COMPOSE_FILE}}'
- task: lint:file
vars:
COMPOSE_FILE: '{{.TEST_COMPOSE_FILE}}'
lint:file:
internal: true
vars:
COMPOSE_FILE: '{{.COMPOSE_FILE | default .LOCAL_COMPOSE_FILE}}'
cmds:
- docker compose -f {{.COMPOSE_FILE}} config -q --resolve-image-digests
- docker compose -f {{.LOCAL_COMPOSE_FILE}} config -q
- |
docker compose -f {{.TEST_COMPOSE_FILE}} config -q \
--resolve-image-digests