diff --git a/traefik/3.1.6/22.03-lts-sp1/Dockerfile b/traefik/3.1.6/22.03-lts-sp1/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..41a61f79b5f0c8032fd749a8b51057668c343f71 --- /dev/null +++ b/traefik/3.1.6/22.03-lts-sp1/Dockerfile @@ -0,0 +1,19 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp1 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=3.1.6 + +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.1.6/22.03-lts-sp1/entrypoint.sh b/traefik/3.1.6/22.03-lts-sp1/entrypoint.sh new file mode 100644 index 0000000000000000000000000000000000000000..663073dc9759941e9645786905c87d9c7ce1c7d1 --- /dev/null +++ b/traefik/3.1.6/22.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/traefik/meta.yml b/traefik/meta.yml index 78181872fc5d63ae6a1089fc06c6049e93dd69db..1e2e495bda5e356ec1d6e295b37658cc195d0378 100644 --- a/traefik/meta.yml +++ b/traefik/meta.yml @@ -3,4 +3,6 @@ 3.1.4-oe2203sp3: path: traefik/3.1.4/22.03-lts-sp3/Dockerfile 3.1.5-oe2203sp3: - path: traefik/3.1.5/22.03-lts-sp3/Dockerfile \ No newline at end of file + path: traefik/3.1.5/22.03-lts-sp3/Dockerfile +3.1.6-oe2203sp3: + path: /traefik/3.1.6/22.03-lts-sp1/Dockerfile \ No newline at end of file