From 6186f7fd3b7c4ea48e1d0007cc0daa840b3a7388 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Fri, 12 Jul 2024 01:50:26 +0000 Subject: [PATCH] oe2203sp3 update traefik to 3.0.4 --- traefik/3.0.4/22.03-lts-sp3/Dockerfile | 19 +++++++++++++++++++ traefik/3.0.4/22.03-lts-sp3/entrypoint.sh | 18 ++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 traefik/3.0.4/22.03-lts-sp3/Dockerfile create mode 100644 traefik/3.0.4/22.03-lts-sp3/entrypoint.sh diff --git a/traefik/3.0.4/22.03-lts-sp3/Dockerfile b/traefik/3.0.4/22.03-lts-sp3/Dockerfile new file mode 100644 index 00000000..6f1978b1 --- /dev/null +++ b/traefik/3.0.4/22.03-lts-sp3/Dockerfile @@ -0,0 +1,19 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp3 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=3.0.4 + +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 ["/entrypoint.sh"] +CMD ["traefik"] diff --git a/traefik/3.0.4/22.03-lts-sp3/entrypoint.sh b/traefik/3.0.4/22.03-lts-sp3/entrypoint.sh new file mode 100644 index 00000000..663073dc --- /dev/null +++ b/traefik/3.0.4/22.03-lts-sp3/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 -- Gitee