-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix/DT-1770-add-localstack-into-docker-compose (#3006)
* add localstack dockerfile * dont run the av on local * fix broken ports on docker * add test to check AV not called * remove not needed docker ports * linting --------- Co-authored-by: Teemerte Teccola <teemerte.teccola@digital.trade.gov.uk>
- Loading branch information
1 parent
c8d1d0a
commit 9d28c14
Showing
7 changed files
with
45 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM localstack/localstack:latest | ||
COPY ./init /etc/localstack/init/ready.d/ | ||
RUN chmod +x /etc/localstack/init/ready.d/buckets.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -x | ||
awslocal s3 mb s3://notebooks.dataworkspace.local | ||
awslocal s3 mb s3://uploads.dataworkspace.local | ||
# Multipart file uploads from Your Files in the browser require ETag to be | ||
# exposed but by default it's not, so we add a CORS config to expose it | ||
awslocal s3api put-bucket-cors --bucket notebooks.dataworkspace.local --cors-configuration file:///etc/localstack/init/ready.d/s3-cors.json | ||
set +x | ||
|
||
echo "S3 Configured" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"CORSRules": [ | ||
{ | ||
"AllowedOrigins": ["http://dataworkspace.test:8000"], | ||
"AllowedMethods": ["HEAD", "GET", "PUT", "POST", "DELETE"], | ||
"ExposeHeaders": ["etag"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters