diff options
| author | Ryo Nakamura <upa@haeena.net> | 2023-03-12 20:37:57 +0900 |
|---|---|---|
| committer | Ryo Nakamura <upa@haeena.net> | 2023-03-12 20:37:57 +0900 |
| commit | e2da5811ce2c9006ecb4319d8b1c40128ac2ff67 (patch) | |
| tree | 537e53bd38af01766c250bfdb0c48bd0dd722d29 /docker/alpine-3.17.Dockerfile | |
| parent | 597a7a8cbae48a4f1026d6970e78b43b157bc70b (diff) | |
test: add test_python.py for testing python-mscp
Dockerfiles also adapt themselvs for testing python-mscp bindings.
Diffstat (limited to 'docker/alpine-3.17.Dockerfile')
| -rw-r--r-- | docker/alpine-3.17.Dockerfile | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/docker/alpine-3.17.Dockerfile b/docker/alpine-3.17.Dockerfile index bf5679e..d2c899b 100644 --- a/docker/alpine-3.17.Dockerfile +++ b/docker/alpine-3.17.Dockerfile @@ -21,10 +21,11 @@ RUN cd ${mscpdir} \ && cmake .. \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake \ - -DBUILD_STATIC=ON -DBUILD_CONAN=ON \ + -DBUILD_CONAN=ON -DBUILD_STATIC=ON \ && make \ && cp mscp /usr/bin/ \ - && cp mscp /mscp/build/mscp_0.0.6-alpine-3.17-x86_64.static + && cp mscp /mscp/build/mscp_$(cat ${mscpdir}/VERSION)-alpine-3.17-x86_64.static \ + && cp mscp /mscp/build/mscp.linux.x86.static # copy mscp to PKG FILE NAME because this build doesn't use CPACK @@ -33,3 +34,12 @@ RUN ssh-keygen -A RUN mkdir /var/run/sshd \ && ssh-keygen -f /root/.ssh/id_rsa -N "" \ && mv /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys + +# install mscp python module +RUN cd ${mscpdir} \ + && python3 setup.py install --user + +# Need Fix: A trick putting libmscp.so to python mscp module dir does not work on alpine, +# so install libmscp. +RUN cd ${mscpdir}/build \ + && make install |
