Skip to content

Commit

Permalink
added helpful tools to production container
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMrSheldon committed Sep 19, 2024
1 parent c95d7c3 commit 95a9002
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions application/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,20 @@ mkdir -p /tira/application/src
chown -R tira:tira /tira
EOF


########################################################################################################################
# Copy Data & Install Python and Dependencies #
########################################################################################################################
COPY --from=build --chown=tira:tira /tira/application/src/manage.py /home/tira/manage.py

RUN <<EOF
apt-get -qq install sudo podman
useradd -ms /bin/bash tira
# Change tira's password to tira
echo 'tira:tira' | chpasswd
usermod -aG sudo tira
EOF

########################################################################################################################
# Final Configuration Stuff #
########################################################################################################################
Expand Down
1 change: 1 addition & 0 deletions application/src/django_admin/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
# https://docs.djangoproject.com/en/5.1/ref/settings/#std-setting-SECRET_KEY
SECRET_KEY = custom_settings["django_secret"]


Expand Down
1 change: 1 addition & 0 deletions application/test/settings_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
# https://docs.djangoproject.com/en/5.1/ref/settings/#std-setting-SECRET_KEY
SECRET_KEY = custom_settings["django_secret"]


Expand Down
1 change: 1 addition & 0 deletions pipelines/src/django_tira_git/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
# https://docs.djangoproject.com/en/5.1/ref/settings/#std-setting-SECRET_KEY
SECRET_KEY = custom_settings["django_secret"]


Expand Down

0 comments on commit 95a9002

Please sign in to comment.