1
0
Fork 0

Refactoring to Python

This commit is contained in:
Joao M 2022-08-24 01:00:26 +00:00
parent cd5035602a
commit 7d959f892a
43 changed files with 454 additions and 34 deletions

View file

@ -6,18 +6,16 @@ ENV RELEASE_VERSION=$RELEASE_VERSION_ARG
WORKDIR /scripts
COPY requirements.txt /scripts
COPY templates /scripts/templates/
COPY easymapping /scripts/easymapping/
COPY tests/ /scripts/tests/
COPY src/ /scripts/
COPY assets /
RUN apk add --no-cache haproxy bash python3 py3-pip py-yaml docker certbot openssl \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& pip3 install --upgrade pip \
&& pip install -r requirements.txt \
&& pytest -s tests/ \
&& openssl dhparam -out /etc/haproxy/dhparam 2048 \
&& openssl dhparam -out /etc/haproxy/dhparam-1024 1024
&& pip3 install --upgrade pip
# \
# && pip install -r requirements.txt \
# && pytest -s tests/ \
# && openssl dhparam -out /etc/haproxy/dhparam 2048 \
# && openssl dhparam -out /etc/haproxy/dhparam-1024 1024
CMD ["/bin/bash", "-c", "/scripts/haproxy.sh" ]
# CMD ["/bin/bash", "-c", "/scripts/haproxy.sh" ]