diff options
| author | Ryo Nakamura <upa@haeena.net> | 2022-11-13 17:53:46 +0900 |
|---|---|---|
| committer | Ryo Nakamura <upa@haeena.net> | 2022-11-13 17:53:46 +0900 |
| commit | 8719b356942d4997252c2705795485c7af7fd4f0 (patch) | |
| tree | 7830f1d533b7ba1acc5c3c3af3deff199928fe32 /docker | |
| parent | e9d5ceb46222dccf92a69c9865f2df3301b660da (diff) | |
add rocky 8.6 support
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/README.md | 7 | ||||
| -rw-r--r-- | docker/rocky-8.6.Dockerfile | 30 |
2 files changed, 37 insertions, 0 deletions
diff --git a/docker/README.md b/docker/README.md index ad897a1..8c58949 100644 --- a/docker/README.md +++ b/docker/README.md @@ -9,6 +9,8 @@ docker build -t mscp-ubuntu:20.04 -f docker/ubuntu-20.04.Dockerfile . docker build -t mscp-ubuntu:22.04 -f docker/ubuntu-22.04.Dockerfile . docker build -t mscp-centos:8 -f docker/centos-8.Dockerfile . + +docker build -t mscp-rocky:8.6 -f docker/rocky-8.6.Dockerfile . ``` Test `mscp` in the containers. @@ -19,6 +21,8 @@ docker run --init --rm mscp-ubuntu:20.04 /mscp/scripts/test-in-container.sh docker run --init --rm mscp-ubuntu:22.04 /mscp/scripts/test-in-container.sh docker run --init --rm mscp-centos:8 /mscp/scripts/test-in-container.sh + +docker run --init --rm mscp-rocky:8.6 /mscp/scripts/test-in-container.sh ``` Retrieve deb/rpm packages. @@ -32,6 +36,9 @@ docker run --rm -v (pwd):/out mscp-ubuntu:22.04 \ docker run --rm -v (pwd):/out mscp-centos:8 \ cp /mscp/build/mscp_0.0.0-centos-8-x86_64.rpm /out/ + +docker run --rm -v (pwd):/out mscp-rocky:8.6 \ + cp /mscp/build/mscp_0.0.0-rocky-8.6-x86_64.rpm /out/ ``` I don't know whether these are good way.
\ No newline at end of file diff --git a/docker/rocky-8.6.Dockerfile b/docker/rocky-8.6.Dockerfile new file mode 100644 index 0000000..422261b --- /dev/null +++ b/docker/rocky-8.6.Dockerfile @@ -0,0 +1,30 @@ +FROM rockylinux:8.6 + +ARG mscpdir="/mscp" + +COPY . ${mscpdir} + +# install numpy and pytest, sshd for test, and rpm-build +RUN set -ex && yum -y update && yum -y install \ + python3 python3-pip openssh openssh-server openssh-clients rpm-build + +RUN python3 -m pip install numpy pytest + + +# preparation for sshd +RUN mkdir /var/run/sshd \ + && ssh-keygen -A \ + && ssh-keygen -f /root/.ssh/id_rsa -N "" \ + && mv /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys + +# install build dependency +RUN ${mscpdir}/scripts/install-build-deps.sh + +# build +RUN cd ${mscpdir} \ + && rm -rf build \ + && cmake -B build -DBUILD_PKG=1 \ + && cd ${mscpdir}/build \ + && make \ + && cpack -G RPM CPackConfig.cmake + |
