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/rocky-8.6.Dockerfile | |
| parent | e9d5ceb46222dccf92a69c9865f2df3301b660da (diff) | |
add rocky 8.6 support
Diffstat (limited to 'docker/rocky-8.6.Dockerfile')
| -rw-r--r-- | docker/rocky-8.6.Dockerfile | 30 |
1 files changed, 30 insertions, 0 deletions
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 + |
