From 48fc2c5efe59fca6a627b8606a5566e45856f122 Mon Sep 17 00:00:00 2001 From: GuangJie1 Date: Tue, 3 Jun 2025 20:38:56 +0800 Subject: [PATCH] add strongswan --- Cloud/image-list.yml | 1 + .../strongswan/6.0.1/24.03-lts-sp1/Dockerfile | 26 +++++++++++++++++++ Cloud/strongswan/meta.yml | 2 ++ 3 files changed, 29 insertions(+) create mode 100644 Cloud/strongswan/6.0.1/24.03-lts-sp1/Dockerfile create mode 100644 Cloud/strongswan/meta.yml diff --git a/Cloud/image-list.yml b/Cloud/image-list.yml index 6d1a354..13701a9 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 0000000..d9e36a5 --- /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 0000000..794d230 --- /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 -- Gitee