diff --git a/Cloud/image-list.yml b/Cloud/image-list.yml index 6d1a3542bc53d2af8476882b0e130b93b5db81f3..13701a9cd08d32eda2574648ec08dbbd1083d449 100644 --- a/Cloud/image-list.yml +++ b/Cloud/image-list.yml @@ -27,3 +27,4 @@ images: libvirt: libvirt openvswitch: openvswitch coredns: coredns + strongswan: strongswan diff --git a/Cloud/strongswan/6.0.1/24.03-lts-sp1/Dockerfile b/Cloud/strongswan/6.0.1/24.03-lts-sp1/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..d9e36a528082cf5cb56951b27e22a1e020b7f8b8 --- /dev/null +++ b/Cloud/strongswan/6.0.1/24.03-lts-sp1/Dockerfile @@ -0,0 +1,26 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp1 +FROM ${BASE} +ARG VERSION=6.0.1 + +RUN dnf update -y \ + && dnf install -y wget gcc make gmp-devel openssl-devel libcurl-devel \ + openldap-devel libcap-ng-devel iproute iptables pkgconfig \ + autoconf automake libtool libtool-ltdl-devel m4 gettext gettext-devel \ + gperf flex bison \ + && dnf clean all \ + && rm -rf /var/cache/dnf + +WORKDIR /opt + +RUN wget https://github.com/strongswan/strongswan/archive/refs/tags/${VERSION}.tar.gz \ + && tar -zxvf ${VERSION}.tar.gz \ + && rm -f ${VERSION}.tar.gz + +WORKDIR /opt/strongswan-${VERSION} + +RUN ./autogen.sh \ + && ./configure \ + && make -j \ + && make install + +CMD ["swanctl", "--help"] \ No newline at end of file diff --git a/Cloud/strongswan/meta.yml b/Cloud/strongswan/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..794d230f88c888e64d74be05d69792d7c917b930 --- /dev/null +++ b/Cloud/strongswan/meta.yml @@ -0,0 +1,2 @@ +6.0.1-oe2403sp1: + path: 6.0.1/24.03-lts-sp1/Dockerfile \ No newline at end of file