From 73c250c8dd0a1f3f5ffaa2993ec61f6ac53c4e6c Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Thu, 15 May 2025 01:56:52 +0000 Subject: [PATCH] 24.03-lts-sp1 update traefik to 3.4.0 --- Cloud/traefik/3.4.0/24.03-lts-sp1/Dockerfile | 19 +++++++++++++++++++ .../traefik/3.4.0/24.03-lts-sp1/entrypoint.sh | 18 ++++++++++++++++++ Cloud/traefik/meta.yml | 4 +++- 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 Cloud/traefik/3.4.0/24.03-lts-sp1/Dockerfile create mode 100644 Cloud/traefik/3.4.0/24.03-lts-sp1/entrypoint.sh diff --git a/Cloud/traefik/3.4.0/24.03-lts-sp1/Dockerfile b/Cloud/traefik/3.4.0/24.03-lts-sp1/Dockerfile new file mode 100644 index 00000000..c6b9b4b9 --- /dev/null +++ b/Cloud/traefik/3.4.0/24.03-lts-sp1/Dockerfile @@ -0,0 +1,19 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp1 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=3.4.0 + +RUN yum -y update && \ + yum -y install wget && \ + yum clean all + +RUN wget -O /tmp/traefik.tar.gz https://github.com/traefik/traefik/releases/download/v${VERSION}/traefik_v${VERSION}_linux_${TARGETARCH}.tar.gz && \ + tar -zxvf /tmp/traefik.tar.gz -C /usr/bin traefik && \ + chmod +x /usr/bin/traefik && \ + rm -rf /tmp/traefik.tar.gz + +COPY entrypoint.sh / +EXPOSE 80 +ENTRYPOINT ["bash", "/entrypoint.sh"] +CMD ["traefik"] diff --git a/Cloud/traefik/3.4.0/24.03-lts-sp1/entrypoint.sh b/Cloud/traefik/3.4.0/24.03-lts-sp1/entrypoint.sh new file mode 100644 index 00000000..663073dc --- /dev/null +++ b/Cloud/traefik/3.4.0/24.03-lts-sp1/entrypoint.sh @@ -0,0 +1,18 @@ +#!/bin/sh +set -e + +# first arg is `-f` or `--some-option` +if [ "${1#-}" != "$1" ]; then + set -- traefik "$@" +fi + +# if our command is a valid Traefik subcommand, let's invoke it through Traefik instead +# (this allows for "docker run traefik version", etc) +if traefik "$1" --help >/dev/null 2>&1 +then + set -- traefik "$@" +else + echo "= '$1' is not a Traefik command: assuming shell execution." 1>&2 +fi + +exec "$@" \ No newline at end of file diff --git a/Cloud/traefik/meta.yml b/Cloud/traefik/meta.yml index 31f5e7d5..f2732ea8 100644 --- a/Cloud/traefik/meta.yml +++ b/Cloud/traefik/meta.yml @@ -47,4 +47,6 @@ 3.3.3-oe2203sp1: path: 3.3.3/22.03-lts-sp1/Dockerfile 3.3.4-oe2403lts: - path: Cloud/traefik/3.3.4/24.03-lts/Dockerfile \ No newline at end of file + path: Cloud/traefik/3.3.4/24.03-lts/Dockerfile +3.4.0-oe2403sp1: + path: Cloud/traefik/3.4.0/24.03-lts-sp1/Dockerfile \ No newline at end of file -- Gitee