Skip to content

Commit bf0b02b

Browse files
CLDSRV-636: Update pykmip for fixes and better perf
And image is way smaller like that Copy changes from scality/Arsenal@be079d6
1 parent f5be1f6 commit bf0b02b

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/pykmip/Dockerfile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
FROM 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+
36
RUN 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-
2223
ADD ./bin /usr/local/bin
2324
ADD ./certs /ssl
2425
ADD policy.json /etc/pykmip/policies/policy.json
2526
ADD 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

2929
ENTRYPOINT ["/docker-entrypoint.sh"]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
#!/bin/sh
22

3+
# Keep using run_server.py instead of pykmip_server to have DEBUG logging
4+
35
python3 /usr/local/bin/run_server.py 2>&1 | tee -a /artifacts/pykmip.log

0 commit comments

Comments
 (0)