File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 11FROM python:3.10-alpine
22
3+ # Build from github repo sources as there is no recent release since 0.10.0
4+ # but the repo has fixes for some crashes that slowed down kmip
5+
36RUN apk add --no-cache \
47 libressl && \
58 apk add --no-cache --virtual .build-deps \
@@ -8,22 +11,19 @@ RUN apk add --no-cache \
811 libressl-dev \
912 sqlite-dev \
1013 build-base \
11- curl
12-
13- RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
14- ENV PATH="/root/.cargo/bin:${PATH}"
15-
16- RUN pip3 install -U pip && \
17- pip3 install pykmip requests && \
14+ curl \
15+ git && \
16+ git clone https://github.com/openkmip/pykmip.git && \
17+ cd pykmip && \
18+ python3 setup.py install && \
1819 apk del .build-deps && \
20+ rm -rf /pykmip && \
1921 mkdir /pykmip
2022
21-
2223ADD ./bin /usr/local/bin
2324ADD ./certs /ssl
2425ADD policy.json /etc/pykmip/policies/policy.json
2526ADD server.conf /etc/pykmip/server.conf
26- ADD docker-entrypoint.sh /
27- RUN chmod +x /docker-entrypoint.sh
27+ ADD --chmod=+x docker-entrypoint.sh /
2828
2929ENTRYPOINT ["/docker-entrypoint.sh" ]
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3+ # Keep using run_server.py instead of pykmip_server to have DEBUG logging
4+
35python3 /usr/local/bin/run_server.py 2>&1 | tee -a /artifacts/pykmip.log
You can’t perform that action at this time.
0 commit comments