Commit c38d86a2 authored by Andre de Sousa's avatar Andre de Sousa Committed by Andre de Sousa

Adds environment variables at Dockerfile.* and enables logger in settings.py

parent eeb018d0
Pipeline #32551177 failed with stage
in 4 minutes and 26 seconds
FROM python:3.5
ENV PYTHONUNBUFFERED 1
RUN apt-get update &&\
apt-get install --no-install-recommends --no-install-suggests -y \
\
......@@ -57,4 +59,4 @@ RUN /usr/bin/crontab /etc/cron.d/smi-cron
# Initializing container with script
ADD scripts/start.sh /bin/start.sh
CMD /bin/bash /bin/start.sh
\ No newline at end of file
CMD /bin/bash /bin/start.sh
FROM python:3.5
ENV PYTHONUNBUFFERED 1
RUN apt-get update &&\
apt-get install --no-install-recommends --no-install-suggests -y \
\
......@@ -8,7 +10,7 @@ RUN apt-get update &&\
libpq-dev \
python3-pip \
postgresql \
postgresql-client
postgresql-client
# Base deps
RUN pip3 install \
......
......@@ -22,4 +22,4 @@ fi
printf "DB_NAME=$db_name\nDB_USER=$db_user\nDB_PASS=$db_pass\nDB_SERVICE=postgres\nDB_PORT=5432" >> "$file"
echo -e "\nDatabase configuration created succefully!"
\ No newline at end of file
echo -e "\nDatabase configuration created succefully!"
......@@ -204,7 +204,7 @@ STATICFILES_DIRS = [
PROJECT_DIR = Path(__file__).parent
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
'disable_existing_loggers': False,
'formatters': {
'standard': {
'format': '%(asctime)s [%(levelname)s] %(name)s: %(message)s'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment