-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for local secrets #227
Changes from 2 commits
00db98b
be5f5b5
870ed31
709f536
90c4ab4
31a0c22
5703d6a
937a6a7
a145f07
f077472
2dd4a10
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,8 +63,12 @@ HIDE_SQL_PARAMETER_LOGS=TRUE | |
# add them to this file to avoid mistakenly | ||
# committing them. Set these in your shell | ||
# by doing `export AWS_ACCESS_KEY_ID=whatever` | ||
# if you are running the app directly, or | ||
# in your `app/.env` if you are running the | ||
# app in a Docker container | ||
Comment on lines
+66
to
+68
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Threading arbitrarily, - we might also need a change to the https://github.com/navapbc/template-application-flask/blob/main/app/tests/conftest.py#L21 I think if we just adjusted There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alternatively - we could get rid of load_local_env_vars entirely and more accurately document how to do that properly when running outside of docker. Maybe I'll take that on next week. |
||
AWS_ACCESS_KEY_ID=DO_NOT_SET_HERE | ||
AWS_SECRET_ACCESS_KEY=DO_NOT_SET_HERE | ||
|
||
# These next two are commented out as we | ||
# don't have configuration for individuals | ||
# to use these at the moment and boto3 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: '3' | ||
|
||
services: | ||
|
||
main-app: | ||
env_file: | ||
- ./app/local.env | ||
- ./app/.env | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm curious if we want to name the override env file something like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, I wonder if the real issue here is where we keep the docker-compose file. Would there be any issue moving it to the app folder itself?
That's what we did on the simpler grants gov repo (this
api
folder is the equivalent ofapp
): https://github.com/navapbc/simpler-grants-gov/tree/main/apiWe do have a top-level docker-compose but just for the purposes of spinning up both the frontend and API together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm open to that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that inside the app folder seems more appropriate to me.