Skip to content

Commit

Permalink
fixing naming
Browse files Browse the repository at this point in the history
  • Loading branch information
maximelaboisson committed Feb 2, 2024
1 parent 4095156 commit a575249
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ RUN wget https://github.com/stedolan/jq/releases/download/jq-1.7/jq-linux64 && \
mv jq-linux64 /usr/local/bin/jq && \
chmod +x /usr/local/bin/jq

COPY ./load-env.sh load-env.sh
COPY ./parse-config.sh parse-config.sh

ENTRYPOINT [ "bash", "load-env.sh" ]
ENTRYPOINT [ "bash", "parse-config.sh" ]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Overview
The `parse-env.sh` script is used as an init container to create a `.env` file from other config files. In our current setup, these other config files are K8S secrets mounted as volumes. The format of the resulting `.env` file is a traditional `KEY=VALUE` text file, with each entry being seperated by a new line. This way, applications need to be only aware of one file to load its configuration. Aside from the bundling, the script also formats the key to standardise naming.
The `parse-config.sh` script is used as an init container to create a `.env` file from other config files. In our current setup, these other config files are K8S secrets mounted as volumes. The format of the resulting `.env` file is a traditional `KEY=VALUE` text file, with each entry being seperated by a new line. This way, applications need to be only aware of one file to load its configuration. Aside from the bundling, the script also formats the key to standardise naming.

Note that for the moment we only parse one other config file coming from SSM, but we might add other later.
File renamed without changes.

0 comments on commit a575249

Please sign in to comment.