From 4a2d233b1a42e255b8e4097d50d2241b97bd446e Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Wed, 28 Nov 2018 17:18:42 -0800 Subject: [PATCH] Add 1.9-dev9 --- .travis.yml | 3 ++ 1.5/Dockerfile | 4 +- 1.5/alpine/Dockerfile | 5 +-- 1.6/Dockerfile | 4 +- 1.6/alpine/Dockerfile | 5 +-- 1.7/Dockerfile | 4 +- 1.7/alpine/Dockerfile | 5 +-- 1.8/Dockerfile | 4 +- 1.8/alpine/Dockerfile | 5 +-- 1.9-rc/Dockerfile | 63 ++++++++++++++++++++++++++++++ 1.9-rc/alpine/Dockerfile | 62 +++++++++++++++++++++++++++++ 1.9-rc/alpine/docker-entrypoint.sh | 17 ++++++++ 1.9-rc/docker-entrypoint.sh | 17 ++++++++ Dockerfile-alpine.template | 5 +-- Dockerfile-debian.template | 4 +- generate-stackbrew-library.sh | 7 +++- update.sh | 32 ++++++++++----- 17 files changed, 209 insertions(+), 37 deletions(-) create mode 100644 1.9-rc/Dockerfile create mode 100644 1.9-rc/alpine/Dockerfile create mode 100755 1.9-rc/alpine/docker-entrypoint.sh create mode 100755 1.9-rc/docker-entrypoint.sh diff --git a/.travis.yml b/.travis.yml index 07dcb5f..ecb0363 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,9 @@ language: bash services: docker env: + - VERSION=1.9-rc VARIANT= + - VERSION=1.9-rc ARCH=i386 + - VERSION=1.9-rc VARIANT=alpine - VERSION=1.8 VARIANT= - VERSION=1.8 ARCH=i386 - VERSION=1.8 VARIANT=alpine diff --git a/1.5/Dockerfile b/1.5/Dockerfile index cf1f0a4..4da1a01 100644 --- a/1.5/Dockerfile +++ b/1.5/Dockerfile @@ -1,8 +1,8 @@ # vim:set ft=dockerfile: FROM debian:stretch-slim -ENV HAPROXY_MAJOR 1.5 ENV HAPROXY_VERSION 1.5.19 +ENV HAPROXY_URL https://www.haproxy.org/download/1.5/src/haproxy-1.5.19.tar.gz ENV HAPROXY_SHA256 e00ae2a633da614967f2e3ebebdb817ec537cba8383b833fc8d9a506876e0d5e # see https://sources.debian.net/src/haproxy/jessie/debian/rules/ for some helpful navigation of the possible "make" arguments @@ -20,7 +20,7 @@ RUN set -x \ zlib1g-dev \ && rm -rf /var/lib/apt/lists/* \ \ - && wget -O haproxy.tar.gz "https://www.haproxy.org/download/${HAPROXY_MAJOR}/src/haproxy-${HAPROXY_VERSION}.tar.gz" \ + && wget -O haproxy.tar.gz "$HAPROXY_URL" \ && echo "$HAPROXY_SHA256 *haproxy.tar.gz" | sha256sum -c \ && mkdir -p /usr/src/haproxy \ && tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \ diff --git a/1.5/alpine/Dockerfile b/1.5/alpine/Dockerfile index 4f19971..fe3c596 100644 --- a/1.5/alpine/Dockerfile +++ b/1.5/alpine/Dockerfile @@ -1,8 +1,8 @@ # vim:set ft=dockerfile: FROM alpine:3.8 -ENV HAPROXY_MAJOR 1.5 ENV HAPROXY_VERSION 1.5.19 +ENV HAPROXY_URL https://www.haproxy.org/download/1.5/src/haproxy-1.5.19.tar.gz ENV HAPROXY_SHA256 e00ae2a633da614967f2e3ebebdb817ec537cba8383b833fc8d9a506876e0d5e # see https://sources.debian.net/src/haproxy/jessie/debian/rules/ for some helpful navigation of the possible "make" arguments @@ -21,8 +21,7 @@ RUN set -x \ tar \ zlib-dev \ \ -# install HAProxy - && wget -O haproxy.tar.gz "https://www.haproxy.org/download/${HAPROXY_MAJOR}/src/haproxy-${HAPROXY_VERSION}.tar.gz" \ + && wget -O haproxy.tar.gz "$HAPROXY_URL" \ && echo "$HAPROXY_SHA256 *haproxy.tar.gz" | sha256sum -c \ && mkdir -p /usr/src/haproxy \ && tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \ diff --git a/1.6/Dockerfile b/1.6/Dockerfile index eee5c72..dedcce3 100644 --- a/1.6/Dockerfile +++ b/1.6/Dockerfile @@ -1,8 +1,8 @@ # vim:set ft=dockerfile: FROM debian:stretch-slim -ENV HAPROXY_MAJOR 1.6 ENV HAPROXY_VERSION 1.6.14 +ENV HAPROXY_URL https://www.haproxy.org/download/1.6/src/haproxy-1.6.14.tar.gz ENV HAPROXY_SHA256 bac949838a3a497221d1a9e937d60cba32156783a216146a524ce40675b6b828 # see https://sources.debian.net/src/haproxy/jessie/debian/rules/ for some helpful navigation of the possible "make" arguments @@ -21,7 +21,7 @@ RUN set -x \ zlib1g-dev \ && rm -rf /var/lib/apt/lists/* \ \ - && wget -O haproxy.tar.gz "https://www.haproxy.org/download/${HAPROXY_MAJOR}/src/haproxy-${HAPROXY_VERSION}.tar.gz" \ + && wget -O haproxy.tar.gz "$HAPROXY_URL" \ && echo "$HAPROXY_SHA256 *haproxy.tar.gz" | sha256sum -c \ && mkdir -p /usr/src/haproxy \ && tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \ diff --git a/1.6/alpine/Dockerfile b/1.6/alpine/Dockerfile index dfc393f..45d028a 100644 --- a/1.6/alpine/Dockerfile +++ b/1.6/alpine/Dockerfile @@ -1,8 +1,8 @@ # vim:set ft=dockerfile: FROM alpine:3.8 -ENV HAPROXY_MAJOR 1.6 ENV HAPROXY_VERSION 1.6.14 +ENV HAPROXY_URL https://www.haproxy.org/download/1.6/src/haproxy-1.6.14.tar.gz ENV HAPROXY_SHA256 bac949838a3a497221d1a9e937d60cba32156783a216146a524ce40675b6b828 # see https://sources.debian.net/src/haproxy/jessie/debian/rules/ for some helpful navigation of the possible "make" arguments @@ -22,8 +22,7 @@ RUN set -x \ tar \ zlib-dev \ \ -# install HAProxy - && wget -O haproxy.tar.gz "https://www.haproxy.org/download/${HAPROXY_MAJOR}/src/haproxy-${HAPROXY_VERSION}.tar.gz" \ + && wget -O haproxy.tar.gz "$HAPROXY_URL" \ && echo "$HAPROXY_SHA256 *haproxy.tar.gz" | sha256sum -c \ && mkdir -p /usr/src/haproxy \ && tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \ diff --git a/1.7/Dockerfile b/1.7/Dockerfile index 1cd4f16..294d6a8 100644 --- a/1.7/Dockerfile +++ b/1.7/Dockerfile @@ -1,8 +1,8 @@ # vim:set ft=dockerfile: FROM debian:stretch-slim -ENV HAPROXY_MAJOR 1.7 ENV HAPROXY_VERSION 1.7.11 +ENV HAPROXY_URL https://www.haproxy.org/download/1.7/src/haproxy-1.7.11.tar.gz ENV HAPROXY_SHA256 d564b8e9429d1e8e13cb648bf4694926b472e36da1079df946bb732927b232ea # see https://sources.debian.net/src/haproxy/jessie/debian/rules/ for some helpful navigation of the possible "make" arguments @@ -21,7 +21,7 @@ RUN set -x \ zlib1g-dev \ && rm -rf /var/lib/apt/lists/* \ \ - && wget -O haproxy.tar.gz "https://www.haproxy.org/download/${HAPROXY_MAJOR}/src/haproxy-${HAPROXY_VERSION}.tar.gz" \ + && wget -O haproxy.tar.gz "$HAPROXY_URL" \ && echo "$HAPROXY_SHA256 *haproxy.tar.gz" | sha256sum -c \ && mkdir -p /usr/src/haproxy \ && tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \ diff --git a/1.7/alpine/Dockerfile b/1.7/alpine/Dockerfile index 188ef69..d22923e 100644 --- a/1.7/alpine/Dockerfile +++ b/1.7/alpine/Dockerfile @@ -1,8 +1,8 @@ # vim:set ft=dockerfile: FROM alpine:3.8 -ENV HAPROXY_MAJOR 1.7 ENV HAPROXY_VERSION 1.7.11 +ENV HAPROXY_URL https://www.haproxy.org/download/1.7/src/haproxy-1.7.11.tar.gz ENV HAPROXY_SHA256 d564b8e9429d1e8e13cb648bf4694926b472e36da1079df946bb732927b232ea # see https://sources.debian.net/src/haproxy/jessie/debian/rules/ for some helpful navigation of the possible "make" arguments @@ -22,8 +22,7 @@ RUN set -x \ tar \ zlib-dev \ \ -# install HAProxy - && wget -O haproxy.tar.gz "https://www.haproxy.org/download/${HAPROXY_MAJOR}/src/haproxy-${HAPROXY_VERSION}.tar.gz" \ + && wget -O haproxy.tar.gz "$HAPROXY_URL" \ && echo "$HAPROXY_SHA256 *haproxy.tar.gz" | sha256sum -c \ && mkdir -p /usr/src/haproxy \ && tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \ diff --git a/1.8/Dockerfile b/1.8/Dockerfile index 3931df6..f9900b4 100644 --- a/1.8/Dockerfile +++ b/1.8/Dockerfile @@ -1,8 +1,8 @@ # vim:set ft=dockerfile: FROM debian:stretch-slim -ENV HAPROXY_MAJOR 1.8 ENV HAPROXY_VERSION 1.8.14 +ENV HAPROXY_URL https://www.haproxy.org/download/1.8/src/haproxy-1.8.14.tar.gz ENV HAPROXY_SHA256 b17e402578be85e58af7a3eac99b1f675953bea9f67af2e964cf8bdbd1bd3fdf # see https://sources.debian.net/src/haproxy/jessie/debian/rules/ for some helpful navigation of the possible "make" arguments @@ -21,7 +21,7 @@ RUN set -x \ zlib1g-dev \ && rm -rf /var/lib/apt/lists/* \ \ - && wget -O haproxy.tar.gz "https://www.haproxy.org/download/${HAPROXY_MAJOR}/src/haproxy-${HAPROXY_VERSION}.tar.gz" \ + && wget -O haproxy.tar.gz "$HAPROXY_URL" \ && echo "$HAPROXY_SHA256 *haproxy.tar.gz" | sha256sum -c \ && mkdir -p /usr/src/haproxy \ && tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \ diff --git a/1.8/alpine/Dockerfile b/1.8/alpine/Dockerfile index 570a1a4..039e537 100644 --- a/1.8/alpine/Dockerfile +++ b/1.8/alpine/Dockerfile @@ -1,8 +1,8 @@ # vim:set ft=dockerfile: FROM alpine:3.8 -ENV HAPROXY_MAJOR 1.8 ENV HAPROXY_VERSION 1.8.14 +ENV HAPROXY_URL https://www.haproxy.org/download/1.8/src/haproxy-1.8.14.tar.gz ENV HAPROXY_SHA256 b17e402578be85e58af7a3eac99b1f675953bea9f67af2e964cf8bdbd1bd3fdf # see https://sources.debian.net/src/haproxy/jessie/debian/rules/ for some helpful navigation of the possible "make" arguments @@ -22,8 +22,7 @@ RUN set -x \ tar \ zlib-dev \ \ -# install HAProxy - && wget -O haproxy.tar.gz "https://www.haproxy.org/download/${HAPROXY_MAJOR}/src/haproxy-${HAPROXY_VERSION}.tar.gz" \ + && wget -O haproxy.tar.gz "$HAPROXY_URL" \ && echo "$HAPROXY_SHA256 *haproxy.tar.gz" | sha256sum -c \ && mkdir -p /usr/src/haproxy \ && tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \ diff --git a/1.9-rc/Dockerfile b/1.9-rc/Dockerfile new file mode 100644 index 0000000..71f3c78 --- /dev/null +++ b/1.9-rc/Dockerfile @@ -0,0 +1,63 @@ +# vim:set ft=dockerfile: +FROM debian:stretch-slim + +ENV HAPROXY_VERSION 1.9-dev9 +ENV HAPROXY_URL https://www.haproxy.org/download/1.9/src/devel/haproxy-1.9-dev9.tar.gz +ENV HAPROXY_SHA256 48c4f1bca90df8a2ecbe846a79c13d3b02dc6d5f51587f7f431bcfc2cc829d08 + +# see https://sources.debian.net/src/haproxy/jessie/debian/rules/ for some helpful navigation of the possible "make" arguments +RUN set -x \ + \ + && savedAptMark="$(apt-mark showmanual)" \ + && apt-get update && apt-get install -y --no-install-recommends \ + ca-certificates \ + gcc \ + libc6-dev \ + liblua5.3-dev \ + libpcre3-dev \ + libssl-dev \ + make \ + wget \ + zlib1g-dev \ + && rm -rf /var/lib/apt/lists/* \ + \ + && wget -O haproxy.tar.gz "$HAPROXY_URL" \ + && echo "$HAPROXY_SHA256 *haproxy.tar.gz" | sha256sum -c \ + && mkdir -p /usr/src/haproxy \ + && tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \ + && rm haproxy.tar.gz \ + \ + && makeOpts=' \ + TARGET=linux2628 \ + USE_LUA=1 LUA_INC=/usr/include/lua5.3 \ + USE_OPENSSL=1 \ + USE_PCRE=1 PCREDIR= \ + USE_ZLIB=1 \ + ' \ + && make -C /usr/src/haproxy -j "$(nproc)" all $makeOpts \ + && make -C /usr/src/haproxy install-bin $makeOpts \ + \ + && mkdir -p /usr/local/etc/haproxy \ + && cp -R /usr/src/haproxy/examples/errorfiles /usr/local/etc/haproxy/errors \ + && rm -rf /usr/src/haproxy \ + \ + && apt-mark auto '.*' > /dev/null \ + && { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; } \ + && find /usr/local -type f -executable -exec ldd '{}' ';' \ + | awk '/=>/ { print $(NF-1) }' \ + | sort -u \ + | xargs -r dpkg-query --search \ + | cut -d: -f1 \ + | sort -u \ + | xargs -r apt-mark manual \ + && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false + +# https://www.haproxy.org/download/1.8/doc/management.txt +# "4. Stopping and restarting HAProxy" +# "when the SIGTERM signal is sent to the haproxy process, it immediately quits and all established connections are closed" +# "graceful stop is triggered when the SIGUSR1 signal is sent to the haproxy process" +STOPSIGNAL SIGUSR1 + +COPY docker-entrypoint.sh / +ENTRYPOINT ["/docker-entrypoint.sh"] +CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"] diff --git a/1.9-rc/alpine/Dockerfile b/1.9-rc/alpine/Dockerfile new file mode 100644 index 0000000..f954b94 --- /dev/null +++ b/1.9-rc/alpine/Dockerfile @@ -0,0 +1,62 @@ +# vim:set ft=dockerfile: +FROM alpine:3.8 + +ENV HAPROXY_VERSION 1.9-dev9 +ENV HAPROXY_URL https://www.haproxy.org/download/1.9/src/devel/haproxy-1.9-dev9.tar.gz +ENV HAPROXY_SHA256 48c4f1bca90df8a2ecbe846a79c13d3b02dc6d5f51587f7f431bcfc2cc829d08 + +# see https://sources.debian.net/src/haproxy/jessie/debian/rules/ for some helpful navigation of the possible "make" arguments +RUN set -x \ + \ + && apk add --no-cache --virtual .build-deps \ + ca-certificates \ + gcc \ + libc-dev \ + linux-headers \ + lua5.3-dev \ + make \ + openssl \ + openssl-dev \ + pcre-dev \ + readline-dev \ + tar \ + zlib-dev \ + \ + && wget -O haproxy.tar.gz "$HAPROXY_URL" \ + && echo "$HAPROXY_SHA256 *haproxy.tar.gz" | sha256sum -c \ + && mkdir -p /usr/src/haproxy \ + && tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \ + && rm haproxy.tar.gz \ + \ + && makeOpts=' \ + TARGET=linux2628 \ + USE_LUA=1 LUA_INC=/usr/include/lua5.3 LUA_LIB=/usr/lib/lua5.3 \ + USE_OPENSSL=1 \ + USE_PCRE=1 PCREDIR= \ + USE_ZLIB=1 \ + ' \ + && make -C /usr/src/haproxy -j "$(getconf _NPROCESSORS_ONLN)" all $makeOpts \ + && make -C /usr/src/haproxy install-bin $makeOpts \ + \ + && mkdir -p /usr/local/etc/haproxy \ + && cp -R /usr/src/haproxy/examples/errorfiles /usr/local/etc/haproxy/errors \ + && rm -rf /usr/src/haproxy \ + \ + && runDeps="$( \ + scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \ + | tr ',' '\n' \ + | sort -u \ + | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \ + )" \ + && apk add --virtual .haproxy-rundeps $runDeps \ + && apk del .build-deps + +# https://www.haproxy.org/download/1.8/doc/management.txt +# "4. Stopping and restarting HAProxy" +# "when the SIGTERM signal is sent to the haproxy process, it immediately quits and all established connections are closed" +# "graceful stop is triggered when the SIGUSR1 signal is sent to the haproxy process" +STOPSIGNAL SIGUSR1 + +COPY docker-entrypoint.sh / +ENTRYPOINT ["/docker-entrypoint.sh"] +CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"] diff --git a/1.9-rc/alpine/docker-entrypoint.sh b/1.9-rc/alpine/docker-entrypoint.sh new file mode 100755 index 0000000..8b2093b --- /dev/null +++ b/1.9-rc/alpine/docker-entrypoint.sh @@ -0,0 +1,17 @@ +#!/bin/sh +set -e + +# first arg is `-f` or `--some-option` +if [ "${1#-}" != "$1" ]; then + set -- haproxy "$@" +fi + +if [ "$1" = 'haproxy' ]; then + shift # "haproxy" + # if the user wants "haproxy", let's add a couple useful flags + # -W -- "master-worker mode" (similar to the old "haproxy-systemd-wrapper"; allows for reload via "SIGUSR2") + # -db -- disables background mode + set -- haproxy -W -db "$@" +fi + +exec "$@" diff --git a/1.9-rc/docker-entrypoint.sh b/1.9-rc/docker-entrypoint.sh new file mode 100755 index 0000000..8b2093b --- /dev/null +++ b/1.9-rc/docker-entrypoint.sh @@ -0,0 +1,17 @@ +#!/bin/sh +set -e + +# first arg is `-f` or `--some-option` +if [ "${1#-}" != "$1" ]; then + set -- haproxy "$@" +fi + +if [ "$1" = 'haproxy' ]; then + shift # "haproxy" + # if the user wants "haproxy", let's add a couple useful flags + # -W -- "master-worker mode" (similar to the old "haproxy-systemd-wrapper"; allows for reload via "SIGUSR2") + # -db -- disables background mode + set -- haproxy -W -db "$@" +fi + +exec "$@" diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index 0abe885..0cb8526 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -1,8 +1,8 @@ # vim:set ft=dockerfile: FROM alpine:%%ALPINE_VERSION%% -ENV HAPROXY_MAJOR %%HAPROXY_MAJOR%% ENV HAPROXY_VERSION %%HAPROXY_VERSION%% +ENV HAPROXY_URL %%HAPROXY_URL%% ENV HAPROXY_SHA256 %%HAPROXY_SHA256%% # see https://sources.debian.net/src/haproxy/jessie/debian/rules/ for some helpful navigation of the possible "make" arguments @@ -22,8 +22,7 @@ RUN set -x \ tar \ zlib-dev \ \ -# install HAProxy - && wget -O haproxy.tar.gz "https://www.haproxy.org/download/${HAPROXY_MAJOR}/src/haproxy-${HAPROXY_VERSION}.tar.gz" \ + && wget -O haproxy.tar.gz "$HAPROXY_URL" \ && echo "$HAPROXY_SHA256 *haproxy.tar.gz" | sha256sum -c \ && mkdir -p /usr/src/haproxy \ && tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \ diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index f884dc7..e7e1a51 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -1,8 +1,8 @@ # vim:set ft=dockerfile: FROM debian:%%DEBIAN_VERSION%% -ENV HAPROXY_MAJOR %%HAPROXY_MAJOR%% ENV HAPROXY_VERSION %%HAPROXY_VERSION%% +ENV HAPROXY_URL %%HAPROXY_URL%% ENV HAPROXY_SHA256 %%HAPROXY_SHA256%% # see https://sources.debian.net/src/haproxy/jessie/debian/rules/ for some helpful navigation of the possible "make" arguments @@ -21,7 +21,7 @@ RUN set -x \ zlib1g-dev \ && rm -rf /var/lib/apt/lists/* \ \ - && wget -O haproxy.tar.gz "https://www.haproxy.org/download/${HAPROXY_MAJOR}/src/haproxy-${HAPROXY_VERSION}.tar.gz" \ + && wget -O haproxy.tar.gz "$HAPROXY_URL" \ && echo "$HAPROXY_SHA256 *haproxy.tar.gz" | sha256sum -c \ && mkdir -p /usr/src/haproxy \ && tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \ diff --git a/generate-stackbrew-library.sh b/generate-stackbrew-library.sh index 0481c70..e1de6a9 100755 --- a/generate-stackbrew-library.sh +++ b/generate-stackbrew-library.sh @@ -1,5 +1,5 @@ -#!/bin/bash -set -eu +#!/usr/bin/env bash +set -Eeuo pipefail declare -A aliases=( [1.8]='1 latest' @@ -12,6 +12,9 @@ cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" versions=( */ ) versions=( "${versions[@]%/}" ) +# sort version numbers with highest first +IFS=$'\n'; versions=( $(echo "${versions[*]}" | sort -rV) ); unset IFS + # get the most recent commit which modified any of "$@" fileCommit() { git log -1 --format='format:%H' HEAD -- "$@" diff --git a/update.sh b/update.sh index 976c156..04e431c 100755 --- a/update.sh +++ b/update.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -eo pipefail +set -Eeuo pipefail cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" @@ -28,22 +28,34 @@ for version in "${versions[@]}"; do fi fullVersion="$( - curl -sSL --compressed 'https://www.haproxy.org/download/'"$rcVersion"'/src/' \ - | grep ' "$version/Dockerfile" ) - + sed -r "$sedExpr" 'Dockerfile-debian.template' > "$version/Dockerfile" + for variant in alpine; do [ -d "$version/$variant" ] || continue - ( set -x; sed -r "$sedExpr" 'Dockerfile-alpine.template' > "$version/$variant/Dockerfile" ) + sed -r "$sedExpr" 'Dockerfile-alpine.template' > "$version/$variant/Dockerfile" travisEnv='\n - VERSION='"$version VARIANT=$variant$travisEnv" done