Skip to content

Commit 5808e3e

Browse files
authored
Pass env vars for using AWS locally (#264)
1 parent 5e22caf commit 5808e3e

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

dockerfiles/docker-compose.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,16 @@ services:
9797
- RTD_EXT_THEME_ENABLED
9898
- RTD_EXT_THEME_DEV_SERVER_ENABLED
9999
- RTD_FILETREEDIFF_ALL
100+
# AWS related settings.
101+
- RTD_S3_PROVIDER
102+
- RTD_AWS_ACCESS_KEY_ID
103+
- RTD_AWS_SECRET_ACCESS_KEY
104+
- RTD_AWS_STS_ASSUME_ROLE_ARN
105+
- RTD_S3_MEDIA_STORAGE_BUCKET
106+
- RTD_S3_BUILD_COMMANDS_STORAGE_BUCKET
107+
- RTD_S3_BUILD_TOOLS_STORAGE_BUCKET
108+
- RTD_S3_STATIC_STORAGE_BUCKET
109+
- RTD_AWS_S3_REGION_NAME
100110

101111
# Allow us to run `docker attach readthedocsorg_proxito_1` and get
102112
# control on STDIN and be able to debug our code with interactive pdb
@@ -149,6 +159,16 @@ services:
149159
- RTD_SOCIALACCOUNT_PROVIDERS_GOOGLE_CLIENT_ID
150160
- RTD_SOCIALACCOUNT_PROVIDERS_GOOGLE_SECRET
151161
- RTD_FILETREEDIFF_ALL
162+
# AWS related settings.
163+
- RTD_S3_PROVIDER
164+
- RTD_AWS_ACCESS_KEY_ID
165+
- RTD_AWS_SECRET_ACCESS_KEY
166+
- RTD_AWS_STS_ASSUME_ROLE_ARN
167+
- RTD_S3_MEDIA_STORAGE_BUCKET
168+
- RTD_S3_BUILD_COMMANDS_STORAGE_BUCKET
169+
- RTD_S3_BUILD_TOOLS_STORAGE_BUCKET
170+
- RTD_S3_STATIC_STORAGE_BUCKET
171+
- RTD_AWS_S3_REGION_NAME
152172
stdin_open: true
153173
tty: true
154174
networks:
@@ -222,6 +242,16 @@ services:
222242
- RTD_SOCIALACCOUNT_PROVIDERS_GOOGLE_CLIENT_ID
223243
- RTD_SOCIALACCOUNT_PROVIDERS_GOOGLE_SECRET
224244
- RTD_FILETREEDIFF_ALL
245+
# AWS related settings.
246+
- RTD_S3_PROVIDER
247+
- RTD_AWS_ACCESS_KEY_ID
248+
- RTD_AWS_SECRET_ACCESS_KEY
249+
- RTD_AWS_STS_ASSUME_ROLE_ARN
250+
- RTD_S3_MEDIA_STORAGE_BUCKET
251+
- RTD_S3_BUILD_COMMANDS_STORAGE_BUCKET
252+
- RTD_S3_BUILD_TOOLS_STORAGE_BUCKET
253+
- RTD_S3_STATIC_STORAGE_BUCKET
254+
- RTD_AWS_S3_REGION_NAME
225255
stdin_open: true
226256
tty: true
227257
networks:
@@ -257,6 +287,16 @@ services:
257287
- RTD_SOCIALACCOUNT_PROVIDERS_GOOGLE_CLIENT_ID
258288
- RTD_SOCIALACCOUNT_PROVIDERS_GOOGLE_SECRET
259289
- RTD_FILETREEDIFF_ALL
290+
# AWS related settings.
291+
- RTD_S3_PROVIDER
292+
- RTD_AWS_ACCESS_KEY_ID
293+
- RTD_AWS_SECRET_ACCESS_KEY
294+
- RTD_AWS_STS_ASSUME_ROLE_ARN
295+
- RTD_S3_MEDIA_STORAGE_BUCKET
296+
- RTD_S3_BUILD_COMMANDS_STORAGE_BUCKET
297+
- RTD_S3_BUILD_TOOLS_STORAGE_BUCKET
298+
- RTD_S3_STATIC_STORAGE_BUCKET
299+
- RTD_AWS_S3_REGION_NAME
260300
stdin_open: true
261301
tty: true
262302
networks:
@@ -297,6 +337,18 @@ services:
297337
- RTD_LOGGING_LEVEL
298338
- RTD_DJANGO_DEBUG
299339
- RTD_FILETREEDIFF_ALL
340+
# TODO: remove these from here, as builders should not
341+
# need to have these settings.
342+
# AWS related settings.
343+
- RTD_S3_PROVIDER
344+
- RTD_AWS_ACCESS_KEY_ID
345+
- RTD_AWS_SECRET_ACCESS_KEY
346+
- RTD_AWS_STS_ASSUME_ROLE_ARN
347+
- RTD_S3_MEDIA_STORAGE_BUCKET
348+
- RTD_S3_BUILD_COMMANDS_STORAGE_BUCKET
349+
- RTD_S3_BUILD_TOOLS_STORAGE_BUCKET
350+
- RTD_S3_STATIC_STORAGE_BUCKET
351+
- RTD_AWS_S3_REGION_NAME
300352
stdin_open: true
301353
tty: true
302354
networks:

0 commit comments

Comments
 (0)