Skip to content
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

56 dockerfile change to copy env file into the container #136

Merged

Conversation

sam57719
Copy link
Collaborator

@sam57719 sam57719 commented Jun 5, 2024

No description provided.

Refactored some modules in the configuration package and updated the Dockerfile to copy .env files if they exist. Paths are now more efficiently arranged and specific import statements have been added to improve code readability.
The commit streamlines handling of environment variables by removing their direct usage from docker-compose files. Instead of passing environment variables like SLACK_APP_TOKEN, SLACK_BOT_TOKEN, ME_CONFIG_BASICAUTH_USERNAME, and ME_CONFIG_BASICAUTH_PASSWORD from host to docker-compose files, now, .env files are directly copied into the Docker container if they exist. Also, the template.env and README.md files have been updated to reflect these changes.
The commit adds explicit file location details for 'logging.json' and '.env' in the README. The Docker volume paths have been updated in the Linux instructions. In addition, it provides an important note on mapping '/app/config' to a host directory which mandates adding the 2 external files to this location.
@sam57719 sam57719 linked an issue Jun 5, 2024 that may be closed by this pull request
The commit enhances README by detailing the different methods to set environment variables. Emphasis has been made on the precedence of docker-compose environment variables over .env file variables. Clear instructions for placing and naming .env file have also been provided.
The commit refines the instructions for setting environment variables in the README.md file. It specifically emphasizes on the priority of 'docker-compose' environment variables over .env file's variables. More precise guidelines for creating and naming .env file are also included.
The commit refines the instructions for setting environment variables in the README.md file. It specifically emphasizes on the priority of 'docker-compose' environment variables over .env file's variables. More precise guidelines for creating and naming .env file are also included.
Copy link
Member

@sjefferson99 sjefferson99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool.

@sjefferson99 sjefferson99 merged commit f8ae8ad into develop Jun 5, 2024
@sjefferson99 sjefferson99 deleted the 56-dockerfile-change-to-copy-env-file-into-the-container branch June 5, 2024 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dockerfile change to copy .env file into the container.
2 participants