From 9b0f103a59702b093ae8529d842ef49c3f334a0d Mon Sep 17 00:00:00 2001 From: GuangJie1 Date: Fri, 30 May 2025 17:12:04 +0800 Subject: [PATCH] add cloud apps --- .../coredns/1.12.1/24.03-lts-sp1/Dockerfile | 0 {Others => Cloud}/coredns/meta.yml | 0 Cloud/image-list.yml | 3 ++ Cloud/libvirt/11.3.0/24.03-lts-sp1/Dockerfile | 26 ++++++++++++++++ Cloud/libvirt/meta.yml | 2 ++ .../3.5.0/24.03-lts-sp1/Dockerfile | 31 +++++++++++++++++++ Cloud/openvswitch/meta.yml | 2 ++ Database/image-list.yml | 3 +- .../neo4j/5.26.7/24.03-lts-sp1/Dockerfile | 29 +++++++++++++++++ Database/neo4j/meta.yml | 2 ++ Others/coredns/1.7.0/21.09/Dockerfile | 7 ----- Others/coredns/README.md | 31 ------------------- Others/image-list.yml | 1 - 13 files changed, 97 insertions(+), 40 deletions(-) rename {Others => Cloud}/coredns/1.12.1/24.03-lts-sp1/Dockerfile (100%) rename {Others => Cloud}/coredns/meta.yml (100%) create mode 100644 Cloud/libvirt/11.3.0/24.03-lts-sp1/Dockerfile create mode 100644 Cloud/libvirt/meta.yml create mode 100644 Cloud/openvswitch/3.5.0/24.03-lts-sp1/Dockerfile create mode 100644 Cloud/openvswitch/meta.yml create mode 100644 Database/neo4j/5.26.7/24.03-lts-sp1/Dockerfile create mode 100644 Database/neo4j/meta.yml delete mode 100644 Others/coredns/1.7.0/21.09/Dockerfile delete mode 100644 Others/coredns/README.md diff --git a/Others/coredns/1.12.1/24.03-lts-sp1/Dockerfile b/Cloud/coredns/1.12.1/24.03-lts-sp1/Dockerfile similarity index 100% rename from Others/coredns/1.12.1/24.03-lts-sp1/Dockerfile rename to Cloud/coredns/1.12.1/24.03-lts-sp1/Dockerfile diff --git a/Others/coredns/meta.yml b/Cloud/coredns/meta.yml similarity index 100% rename from Others/coredns/meta.yml rename to Cloud/coredns/meta.yml diff --git a/Cloud/image-list.yml b/Cloud/image-list.yml index 40e9872..d95e6be 100644 --- a/Cloud/image-list.yml +++ b/Cloud/image-list.yml @@ -24,3 +24,6 @@ images: docker: docker containerd: containerd envoy: envoy + libvirt: libvirt + openvswitch: openvswitch + coredns: coredns diff --git a/Cloud/libvirt/11.3.0/24.03-lts-sp1/Dockerfile b/Cloud/libvirt/11.3.0/24.03-lts-sp1/Dockerfile new file mode 100644 index 0000000..b2ddb1a --- /dev/null +++ b/Cloud/libvirt/11.3.0/24.03-lts-sp1/Dockerfile @@ -0,0 +1,26 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp1 +FROM ${BASE} +ARG VERSION=11.3.0 + +RUN dnf update -y \ + && dnf install -y gcc ninja-build meson libxml2-devel yajl-devel systemd-devel libcap-ng-devel libnl3-devel \ + wget xz libcurl-devel libssh2-devel gnutls-devel libxslt-devel pkgconf-pkg-config perl \ + glib2-devel libtirpc-devel libacl-devel audit-libs-devel libblkid-devel libbsd-devel device-mapper-devel \ + fuse3-devel libpciaccess-devel libselinux-devel libiscsi-devel librados2-devel librbd-devel \ + libpcap-devel bash-completion dmidecode iproute iscsi-initiator-utils kmod openvswitch \ + python3-docutils python3-pytest python3-black python3-flake8 iproute-tc \ + && dnf clean all + +WORKDIR /opt + +RUN wget https://download.libvirt.org/libvirt-${VERSION}.tar.xz \ + && tar -xvf libvirt-${VERSION}.tar.xz \ + && rm -f libvirt-${VERSION}.tar.xz + +WORKDIR /opt/libvirt-${VERSION} + +RUN meson setup build --prefix=/usr/local \ + && ninja -C build \ + && ninja -C build install + +CMD ["libvirtd", "--help"] \ No newline at end of file diff --git a/Cloud/libvirt/meta.yml b/Cloud/libvirt/meta.yml new file mode 100644 index 0000000..845a5f2 --- /dev/null +++ b/Cloud/libvirt/meta.yml @@ -0,0 +1,2 @@ +11.3.0-oe2403sp1: + path: 11.3.0/24.03-lts-sp1/Dockerfile diff --git a/Cloud/openvswitch/3.5.0/24.03-lts-sp1/Dockerfile b/Cloud/openvswitch/3.5.0/24.03-lts-sp1/Dockerfile new file mode 100644 index 0000000..eaa6807 --- /dev/null +++ b/Cloud/openvswitch/3.5.0/24.03-lts-sp1/Dockerfile @@ -0,0 +1,31 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp1 +FROM ${BASE} +ARG VERSION=3.5.0 + +RUN dnf update -y \ + && dnf install -y wget git gcc make autoconf automake libtool \ + openssl-devel libcap-ng-devel unbound-devel nmap-ncat net-tools \ + graphviz clang python3-flake8 python3-pip \ + && dnf clean all \ + && rm -rf /var/cache/dnf + +WORKDIR /opt + +RUN wget https://mirrors.tuna.tsinghua.edu.cn/gnu/groff/groff-1.23.0.tar.gz \ + && tar -xf groff-1.23.0.tar.gz \ + && rm -f groff-1.23.0.tar.gz \ + && cp groff-1.23.0/tmac/en.tmac /usr/share/groff/1.23.0/tmac/ \ + && rm -rf groff-1.23.0 + +RUN wget https://github.com/openvswitch/ovs/archive/refs/tags/v${VERSION}.tar.gz \ + && tar -zxvf v${VERSION}.tar.gz \ + && rm -f v${VERSION}.tar.gz + +WORKDIR /opt/ovs-${VERSION} + +RUN ./boot.sh \ + && ./configure \ + && make -j \ + && make install + +CMD ["ovs-vsctl", "--help"] \ No newline at end of file diff --git a/Cloud/openvswitch/meta.yml b/Cloud/openvswitch/meta.yml new file mode 100644 index 0000000..25f4bb3 --- /dev/null +++ b/Cloud/openvswitch/meta.yml @@ -0,0 +1,2 @@ +3.5.0-oe2403sp1: + path: 3.5.0/24.03-lts-sp1/Dockerfile diff --git a/Database/image-list.yml b/Database/image-list.yml index ab003c7..e74c7e8 100644 --- a/Database/image-list.yml +++ b/Database/image-list.yml @@ -14,4 +14,5 @@ images: tengine: tengine etcd: etcd mariadb: mariadb - tidb: tidb \ No newline at end of file + tidb: tidb + neo4j: neo4j \ No newline at end of file diff --git a/Database/neo4j/5.26.7/24.03-lts-sp1/Dockerfile b/Database/neo4j/5.26.7/24.03-lts-sp1/Dockerfile new file mode 100644 index 0000000..3ddff2d --- /dev/null +++ b/Database/neo4j/5.26.7/24.03-lts-sp1/Dockerfile @@ -0,0 +1,29 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp1 +FROM $BASE + +ARG VERSION=5.26.7 +ARG MAVEN_VERSION=3.8.2 + +RUN yum install -y java-17-openjdk-devel git && \ + curl -fSL -o apache-maven.tar.gz https://repo.huaweicloud.com/apache/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz && \ + mkdir -p /usr/local/maven && \ + tar -zxf apache-maven.tar.gz -C /usr/local/maven --strip-components=1 && \ + rm -rf apache-maven.tar.gz +ENV PATH=$PATH:/usr/local/maven/bin + +RUN git clone -b ${VERSION} https://github.com/neo4j/neo4j.git && \ + cd neo4j && \ + mvn clean install -T4C -DskipTests && \ + cd /neo4j/packaging/standalone/target/ && \ + tar -xvf neo4j-community-${VERSION}-unix.tar.gz +ENV NEO4J_HOME=/neo4j/packaging/standalone/target/neo4j-community-${VERSION} + +RUN curl -fSL -o ${NEO4J_HOME}/lib/neo4j-browser-5.9.0.jar https://repo.maven.apache.org/maven2/org/neo4j/client/neo4j-browser/5.9.0/neo4j-browser-5.9.0.jar && \ + sed -i '$a\server.memory.pagecache.size=512M' ${NEO4J_HOME}/conf/neo4j.conf && \ + sed -i '$a\server.default_listen_address=0.0.0.0' ${NEO4J_HOME}/conf/neo4j.conf + +ENV PATH=$PATH:${NEO4J_HOME}/bin +WORKDIR ${NEO4J_HOME} + +EXPOSE 7474 7687 7473 +CMD ["neo4j", "console"] \ No newline at end of file diff --git a/Database/neo4j/meta.yml b/Database/neo4j/meta.yml new file mode 100644 index 0000000..e966151 --- /dev/null +++ b/Database/neo4j/meta.yml @@ -0,0 +1,2 @@ +5.26.7-oe2403sp1: + path: 5.26.7/24.03-lts-sp1/Dockerfile \ No newline at end of file diff --git a/Others/coredns/1.7.0/21.09/Dockerfile b/Others/coredns/1.7.0/21.09/Dockerfile deleted file mode 100644 index 8c89ebc..0000000 --- a/Others/coredns/1.7.0/21.09/Dockerfile +++ /dev/null @@ -1,7 +0,0 @@ -FROM openeuler/openeuler:21.09 - -RUN yum -y update && yum clean all -RUN yum -y install coredns ca-certificates && yum clean all - -EXPOSE 53 53/udp -ENTRYPOINT ["/sbin/coredns"] diff --git a/Others/coredns/README.md b/Others/coredns/README.md deleted file mode 100644 index 0fac502..0000000 --- a/Others/coredns/README.md +++ /dev/null @@ -1,31 +0,0 @@ -# CoreDNS - -# Quick reference - -- The official CoreDNS docker image. - -- Maintained by: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative) - -- Where to get help: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative), [openEuler](https://gitee.com/openeuler/community) - -# Build reference - -1. Build images and push: -```shell -docker buildx build -t "openeuler/coredns:$VERSION" --platform linux/amd64,linux/arm64 . --push -``` - -We are using `buildx` in here to generate multi-arch images, see more in [Docker Buildx](https://docs.docker.com/buildx/working-with-buildx/) - -2. Run: -```shell -docker run -ti openeuler/coredns:1.7.0-21.09 -``` - -# Supported tags and respective Dockerfile links - -- 1.7.0-21.09: coredns v1.7.0, openEuler 21.09 - -## Operating System -Linux/Unix, ARM64 or x86-64 architecture. - diff --git a/Others/image-list.yml b/Others/image-list.yml index fa812a1..fffed7d 100644 --- a/Others/image-list.yml +++ b/Others/image-list.yml @@ -1,7 +1,6 @@ images: bind9: bind9 bisheng-jdk: bisheng-jdk - coredns: coredns dotnet-aspnet: dotnet-aspnet dotnet-deps: dotnet-deps dotnet-runtime: dotnet-runtime -- Gitee