summaryrefslogtreecommitdiff
path: root/Dockerfile/almalinux-9.3.Dockerfile
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2024-02-04 17:22:31 +0900
committerRyo Nakamura <upa@haeena.net>2024-02-04 17:22:31 +0900
commitec663cc966f65c75b3a7fe463043dd3685686e65 (patch)
tree5405072d24a4d80445e30ea407a1fd13535422b6 /Dockerfile/almalinux-9.3.Dockerfile
parentd57ed4149d0e3bbcc09793bc00c6bd34fd2ca1fb (diff)
bump up container image versions and drop using CPack
We have already provided DEB packages in launchpad PPA and RPM packages in COPR. Thus, we need no more deb/rpm packages in Github releases. The single binary build of mscp is an execptio. Updated container image versions: - almalinux 8.8 -> 9.3 - rocky 8.8 -> 8.9, and 9.3 is added - alpine 3.17 -> 3.19
Diffstat (limited to 'Dockerfile/almalinux-9.3.Dockerfile')
-rw-r--r--Dockerfile/almalinux-9.3.Dockerfile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Dockerfile/almalinux-9.3.Dockerfile b/Dockerfile/almalinux-9.3.Dockerfile
new file mode 100644
index 0000000..516fbd2
--- /dev/null
+++ b/Dockerfile/almalinux-9.3.Dockerfile
@@ -0,0 +1,29 @@
+FROM almalinux:9.3
+
+# install pytest, sshd for test, and rpm-build
+RUN set -ex && yum -y install \
+ python3 python3-pip python3-devel openssh openssh-server openssh-clients rpm-build
+
+RUN python3 -m pip install 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
+
+ARG mscpdir="/mscp"
+
+COPY . ${mscpdir}
+
+# install build dependency
+RUN ${mscpdir}/scripts/install-build-deps.sh
+
+# build
+RUN cd ${mscpdir} \
+ && rm -rf build \
+ && cmake -B build \
+ && cd ${mscpdir}/build \
+ && make -j 2 \
+ && make install