-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: LAUNCH_DOCKER was removed from compose and config.py; added it back
- Loading branch information
Showing
3 changed files
with
5 additions
and
1 deletion.
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
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
ef4ad97
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.
@K-Mistele is there a reason we need LAUNCH_DOCKER in the env file? we moved it to get the new compose script working.
its a non sensitive variable.
also LAUNCH_DOCKER will always be true for the docker-compose files so cant we just assume it?
ef4ad97
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, the reason I added it as an env variable is that this allows us to simply set it as an environment variable for the
node-app
service in the compose configuration (whether we're launching the compose files directly, or through the launch script you're building) without ever needing to manually edit it in thenode/config.py
file.This is useful because it means the node is aware of when it's being launched in docker without requiring that the user configure anything in
config.py
. In short, it removes a configuration step - the user doesn't have to manually edit a variable inconfig.py
. Compose configurations can manually set the variable, and otherwise it will be unset (e.g. launching withsystemd
) resulting in the variable defaulting toFalse
.