Skip to content
Snippets Groups Projects
Commit 7277eb5b authored by Diego Giovane Pasqualin's avatar Diego Giovane Pasqualin
Browse files

Issue SCRUM#159: dockerize gesac agent

parent 7f026a9b
No related branches found
No related tags found
1 merge request!11Issue/159
FROM python:3
LABEL author="C3SL - Centro de Computação Científica e Software Livre"
ENV LOG_LEVEL="warn"
# Database configuration
ENV DB_ENABLED="true"
ENV DB_NAME="gesac"
ENV DB_USER="gesac"
ENV DB_HOST="localhost"
ENV DB_PASS="changeme"
ENV DB_PORT="5432"
# Not implemented yet
ENV API_ENABLED="false"
RUN groupadd -r gesac && useradd --no-log-init -m -r -g gesac gesac
WORKDIR /home/gesac
COPY --chown=gesac:gesac gesacmonit.py .
COPY --chown=gesac:gesac requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN chmod +x gesacmonit.py
USER gesac
ENTRYPOINT ["./gesacmonit.py"]
CMD ["-p gesacmonit.pid", "-v"]
certifi==2018.1.18
chardet==3.0.4
idna==2.6
ply==3.11
psycopg2-binary==2.7.4
pyasn1==0.4.2
pycryptodomex==3.5.1
pysmi==0.2.2
pysnmp==4.4.4
python-dateutil==2.7.0
requests==2.18.4
six==1.11.0
urllib3==1.22
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment