Refactoring to Python
This commit is contained in:
parent
cd5035602a
commit
7d959f892a
43 changed files with 454 additions and 34 deletions
18
Dockerfile
18
Dockerfile
|
|
@ -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" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue