Skip to content

Commit d3b1a98

Browse files
committed
Remove 2.0 branch. Bring back dataplaneapi v2 as /usr/local/bin/dataplaneapi-v2. Update quictls to 3.1.7-quic1.
1 parent 924bcdc commit d3b1a98

File tree

6 files changed

+54
-30
lines changed

6 files changed

+54
-30
lines changed

2.6/Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
FROM golang:alpine3.20 AS dataplaneapi-builder
22

33
ENV DATAPLANE_MINOR 3.0.0
4+
ENV DATAPLANE_V2_MINOR 2.9.6
45
ENV DATAPLANE_URL https://github.com/haproxytech/dataplaneapi.git
56

67
RUN apk add --no-cache ca-certificates git make && \
78
git clone "${DATAPLANE_URL}" "${GOPATH}/src/github.com/haproxytech/dataplaneapi" && \
89
cd "${GOPATH}/src/github.com/haproxytech/dataplaneapi" && \
910
git checkout "v${DATAPLANE_MINOR}" && \
10-
make build && cp build/dataplaneapi /dataplaneapi
11+
make build && cp build/dataplaneapi /dataplaneapi && \
12+
make clean && \
13+
git checkout "v${DATAPLANE_V2_MINOR}" && \
14+
make build && cp build/dataplaneapi /dataplaneapi-v2
1115

1216
FROM alpine:3.20 AS openssl-builder
1317

14-
ENV OPENSSL_URL https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.5-quic1.tar.gz
18+
ENV OPENSSL_URL https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.7-quic1.tar.gz
1519

1620
RUN apk add --no-cache curl build-base make autoconf automake gcc libc-dev linux-headers && \
1721
curl -sfSL "${OPENSSL_URL}" -o openssl.tar.gz && \
@@ -39,14 +43,11 @@ ENV HAPROXY_MINOR 2.6.18
3943
ENV HAPROXY_SHA256 1b36d3c618360eff7cdc2b70dd53affdf9c939d0fdf8602ac2d77018535f709a
4044
ENV HAPROXY_SRC_URL http://www.haproxy.org/download
4145

42-
ENV DATAPLANE_MINOR 3.0.0
43-
ENV DATAPLANE_SHA256 ec685350576898bb0a00d656f427f5da7c28043551a3e0050c1b5301547e235a
44-
ENV DATAPLANE_URL https://github.com/haproxytech/dataplaneapi/releases/download
45-
4646
ENV HAPROXY_UID haproxy
4747
ENV HAPROXY_GID haproxy
4848

4949
COPY --from=dataplaneapi-builder /dataplaneapi /usr/local/bin/dataplaneapi
50+
COPY --from=dataplaneapi-builder /dataplaneapi-v2 /usr/local/bin/dataplaneapi-v2
5051
COPY --from=openssl-builder /opt/quictls /opt/quictls
5152

5253
RUN apk add --no-cache ca-certificates && \
@@ -78,6 +79,8 @@ RUN apk add --no-cache ca-certificates && \
7879
rm -rf /tmp/haproxy && \
7980
chmod +x /usr/local/bin/dataplaneapi && \
8081
ln -s /usr/local/bin/dataplaneapi /usr/bin/dataplaneapi && \
82+
chmod +x /usr/local/bin/dataplaneapi-v2 && \
83+
ln -s /usr/local/bin/dataplaneapi-v2 /usr/bin/dataplaneapi-v2 && \
8184
touch /usr/local/etc/haproxy/dataplaneapi.yml && \
8285
chown "$HAPROXY_UID:$HAPROXY_GID" /usr/local/etc/haproxy/dataplaneapi.yml && \
8386
apk del build-deps && \

2.8/Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
FROM golang:alpine3.20 AS dataplaneapi-builder
22

33
ENV DATAPLANE_MINOR 3.0.0
4+
ENV DATAPLANE_V2_MINOR 2.9.6
45
ENV DATAPLANE_URL https://github.com/haproxytech/dataplaneapi.git
56

67
RUN apk add --no-cache ca-certificates git make && \
78
git clone "${DATAPLANE_URL}" "${GOPATH}/src/github.com/haproxytech/dataplaneapi" && \
89
cd "${GOPATH}/src/github.com/haproxytech/dataplaneapi" && \
910
git checkout "v${DATAPLANE_MINOR}" && \
10-
make build && cp build/dataplaneapi /dataplaneapi
11+
make build && cp build/dataplaneapi /dataplaneapi && \
12+
make clean && \
13+
git checkout "v${DATAPLANE_V2_MINOR}" && \
14+
make build && cp build/dataplaneapi /dataplaneapi-v2
1115

1216
FROM alpine:3.20 AS openssl-builder
1317

14-
ENV OPENSSL_URL https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.5-quic1.tar.gz
18+
ENV OPENSSL_URL https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.7-quic1.tar.gz
1519

1620
RUN apk add --no-cache curl build-base make autoconf automake gcc libc-dev linux-headers && \
1721
curl -sfSL "${OPENSSL_URL}" -o openssl.tar.gz && \
@@ -39,14 +43,11 @@ ENV HAPROXY_MINOR 2.8.10
3943
ENV HAPROXY_SHA256 0d63cd46d9d10ac7dbc02f3c6769c1908f221e0a5c5b655a194655f7528d612a
4044
ENV HAPROXY_SRC_URL http://www.haproxy.org/download
4145

42-
ENV DATAPLANE_MINOR 3.0.0
43-
ENV DATAPLANE_SHA256 ec685350576898bb0a00d656f427f5da7c28043551a3e0050c1b5301547e235a
44-
ENV DATAPLANE_URL https://github.com/haproxytech/dataplaneapi/releases/download
45-
4646
ENV HAPROXY_UID haproxy
4747
ENV HAPROXY_GID haproxy
4848

4949
COPY --from=dataplaneapi-builder /dataplaneapi /usr/local/bin/dataplaneapi
50+
COPY --from=dataplaneapi-builder /dataplaneapi-v2 /usr/local/bin/dataplaneapi-v2
5051
COPY --from=openssl-builder /opt/quictls /opt/quictls
5152

5253
RUN apk add --no-cache ca-certificates && \
@@ -78,6 +79,8 @@ RUN apk add --no-cache ca-certificates && \
7879
rm -rf /tmp/haproxy && \
7980
chmod +x /usr/local/bin/dataplaneapi && \
8081
ln -s /usr/local/bin/dataplaneapi /usr/bin/dataplaneapi && \
82+
chmod +x /usr/local/bin/dataplaneapi-v2 && \
83+
ln -s /usr/local/bin/dataplaneapi-v2 /usr/bin/dataplaneapi-v2 && \
8184
touch /usr/local/etc/haproxy/dataplaneapi.yml && \
8285
chown "$HAPROXY_UID:$HAPROXY_GID" /usr/local/etc/haproxy/dataplaneapi.yml && \
8386
apk del build-deps && \

2.9/Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
FROM golang:alpine3.20 AS dataplaneapi-builder
22

33
ENV DATAPLANE_MINOR 3.0.0
4+
ENV DATAPLANE_V2_MINOR 2.9.6
45
ENV DATAPLANE_URL https://github.com/haproxytech/dataplaneapi.git
56

67
RUN apk add --no-cache ca-certificates git make && \
78
git clone "${DATAPLANE_URL}" "${GOPATH}/src/github.com/haproxytech/dataplaneapi" && \
89
cd "${GOPATH}/src/github.com/haproxytech/dataplaneapi" && \
910
git checkout "v${DATAPLANE_MINOR}" && \
10-
make build && cp build/dataplaneapi /dataplaneapi
11+
make build && cp build/dataplaneapi /dataplaneapi && \
12+
make clean && \
13+
git checkout "v${DATAPLANE_V2_MINOR}" && \
14+
make build && cp build/dataplaneapi /dataplaneapi-v2
1115

1216
FROM alpine:3.20 AS openssl-builder
1317

14-
ENV OPENSSL_URL https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.5-quic1.tar.gz
18+
ENV OPENSSL_URL https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.7-quic1.tar.gz
1519

1620
RUN apk add --no-cache curl build-base make autoconf automake gcc libc-dev linux-headers && \
1721
curl -sfSL "${OPENSSL_URL}" -o openssl.tar.gz && \
@@ -39,14 +43,11 @@ ENV HAPROXY_MINOR 2.9.10
3943
ENV HAPROXY_SHA256 c561b75e1031135dc773c7bbaeeef6e53d24a2accd27a0ebce5883cdb12640c0
4044
ENV HAPROXY_SRC_URL http://www.haproxy.org/download
4145

42-
ENV DATAPLANE_MINOR 3.0.0
43-
ENV DATAPLANE_SHA256 ec685350576898bb0a00d656f427f5da7c28043551a3e0050c1b5301547e235a
44-
ENV DATAPLANE_URL https://github.com/haproxytech/dataplaneapi/releases/download
45-
4646
ENV HAPROXY_UID haproxy
4747
ENV HAPROXY_GID haproxy
4848

4949
COPY --from=dataplaneapi-builder /dataplaneapi /usr/local/bin/dataplaneapi
50+
COPY --from=dataplaneapi-builder /dataplaneapi-v2 /usr/local/bin/dataplaneapi-v2
5051
COPY --from=openssl-builder /opt/quictls /opt/quictls
5152

5253
RUN apk add --no-cache ca-certificates && \
@@ -78,6 +79,8 @@ RUN apk add --no-cache ca-certificates && \
7879
rm -rf /tmp/haproxy && \
7980
chmod +x /usr/local/bin/dataplaneapi && \
8081
ln -s /usr/local/bin/dataplaneapi /usr/bin/dataplaneapi && \
82+
chmod +x /usr/local/bin/dataplaneapi-v2 && \
83+
ln -s /usr/local/bin/dataplaneapi-v2 /usr/bin/dataplaneapi-v2 && \
8184
touch /usr/local/etc/haproxy/dataplaneapi.yml && \
8285
chown "$HAPROXY_UID:$HAPROXY_GID" /usr/local/etc/haproxy/dataplaneapi.yml && \
8386
apk del build-deps && \

3.0/Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
FROM golang:alpine3.20 AS dataplaneapi-builder
22

33
ENV DATAPLANE_MINOR 3.0.0
4+
ENV DATAPLANE_V2_MINOR 2.9.6
45
ENV DATAPLANE_URL https://github.com/haproxytech/dataplaneapi.git
56

67
RUN apk add --no-cache ca-certificates git make && \
78
git clone "${DATAPLANE_URL}" "${GOPATH}/src/github.com/haproxytech/dataplaneapi" && \
89
cd "${GOPATH}/src/github.com/haproxytech/dataplaneapi" && \
910
git checkout "v${DATAPLANE_MINOR}" && \
10-
make build && cp build/dataplaneapi /dataplaneapi
11+
make build && cp build/dataplaneapi /dataplaneapi && \
12+
make clean && \
13+
git checkout "v${DATAPLANE_V2_MINOR}" && \
14+
make build && cp build/dataplaneapi /dataplaneapi-v2
1115

1216
FROM alpine:3.20 AS openssl-builder
1317

14-
ENV OPENSSL_URL https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.5-quic1.tar.gz
18+
ENV OPENSSL_URL https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.7-quic1.tar.gz
1519

1620
RUN apk add --no-cache curl build-base make autoconf automake gcc libc-dev linux-headers && \
1721
curl -sfSL "${OPENSSL_URL}" -o openssl.tar.gz && \
@@ -39,14 +43,11 @@ ENV HAPROXY_MINOR 3.0.4
3943
ENV HAPROXY_SHA256 aabfd98ada721bbfb68f7805586ced0373fb4c8d73e18faa94055a16c2096936
4044
ENV HAPROXY_SRC_URL http://www.haproxy.org/download
4145

42-
ENV DATAPLANE_MINOR 3.0.0
43-
ENV DATAPLANE_SHA256 ec685350576898bb0a00d656f427f5da7c28043551a3e0050c1b5301547e235a
44-
ENV DATAPLANE_URL https://github.com/haproxytech/dataplaneapi/releases/download
45-
4646
ENV HAPROXY_UID haproxy
4747
ENV HAPROXY_GID haproxy
4848

4949
COPY --from=dataplaneapi-builder /dataplaneapi /usr/local/bin/dataplaneapi
50+
COPY --from=dataplaneapi-builder /dataplaneapi-v2 /usr/local/bin/dataplaneapi-v2
5051
COPY --from=openssl-builder /opt/quictls /opt/quictls
5152

5253
RUN apk add --no-cache ca-certificates && \
@@ -78,6 +79,8 @@ RUN apk add --no-cache ca-certificates && \
7879
rm -rf /tmp/haproxy && \
7980
chmod +x /usr/local/bin/dataplaneapi && \
8081
ln -s /usr/local/bin/dataplaneapi /usr/bin/dataplaneapi && \
82+
chmod +x /usr/local/bin/dataplaneapi-v2 && \
83+
ln -s /usr/local/bin/dataplaneapi-v2 /usr/bin/dataplaneapi-v2 && \
8184
touch /usr/local/etc/haproxy/dataplaneapi.yml && \
8285
chown "$HAPROXY_UID:$HAPROXY_GID" /usr/local/etc/haproxy/dataplaneapi.yml && \
8386
apk del build-deps && \

3.1/Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
FROM golang:alpine3.20 AS dataplaneapi-builder
22

33
ENV DATAPLANE_MINOR 3.0.0
4+
ENV DATAPLANE_V2_MINOR 2.9.6
45
ENV DATAPLANE_URL https://github.com/haproxytech/dataplaneapi.git
56

67
RUN apk add --no-cache ca-certificates git make && \
78
git clone "${DATAPLANE_URL}" "${GOPATH}/src/github.com/haproxytech/dataplaneapi" && \
89
cd "${GOPATH}/src/github.com/haproxytech/dataplaneapi" && \
910
git checkout "v${DATAPLANE_MINOR}" && \
10-
make build && cp build/dataplaneapi /dataplaneapi
11+
make build && cp build/dataplaneapi /dataplaneapi && \
12+
make clean && \
13+
git checkout "v${DATAPLANE_V2_MINOR}" && \
14+
make build && cp build/dataplaneapi /dataplaneapi-v2
1115

1216
FROM alpine:3.20 AS openssl-builder
1317

14-
ENV OPENSSL_URL https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.5-quic1.tar.gz
18+
ENV OPENSSL_URL https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.7-quic1.tar.gz
1519

1620
RUN apk add --no-cache curl build-base make autoconf automake gcc libc-dev linux-headers && \
1721
curl -sfSL "${OPENSSL_URL}" -o openssl.tar.gz && \
@@ -39,14 +43,11 @@ ENV HAPROXY_MINOR 3.1-dev7
3943
ENV HAPROXY_SHA256 d6112b8b3f6041632c02ef89bd585184a4a1115d251a767fb18c01082bb0a4a0
4044
ENV HAPROXY_SRC_URL http://www.haproxy.org/download
4145

42-
ENV DATAPLANE_MINOR 3.0.0
43-
ENV DATAPLANE_SHA256 ec685350576898bb0a00d656f427f5da7c28043551a3e0050c1b5301547e235a
44-
ENV DATAPLANE_URL https://github.com/haproxytech/dataplaneapi/releases/download
45-
4646
ENV HAPROXY_UID haproxy
4747
ENV HAPROXY_GID haproxy
4848

4949
COPY --from=dataplaneapi-builder /dataplaneapi /usr/local/bin/dataplaneapi
50+
COPY --from=dataplaneapi-builder /dataplaneapi-v2 /usr/local/bin/dataplaneapi-v2
5051
COPY --from=openssl-builder /opt/quictls /opt/quictls
5152

5253
RUN apk add --no-cache ca-certificates && \
@@ -78,6 +79,8 @@ RUN apk add --no-cache ca-certificates && \
7879
rm -rf /tmp/haproxy && \
7980
chmod +x /usr/local/bin/dataplaneapi && \
8081
ln -s /usr/local/bin/dataplaneapi /usr/bin/dataplaneapi && \
82+
chmod +x /usr/local/bin/dataplaneapi-v2 && \
83+
ln -s /usr/local/bin/dataplaneapi-v2 /usr/bin/dataplaneapi-v2 && \
8184
touch /usr/local/etc/haproxy/dataplaneapi.yml && \
8285
chown "$HAPROXY_UID:$HAPROXY_GID" /usr/local/etc/haproxy/dataplaneapi.yml && \
8386
apk del build-deps && \

update.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ if [ -z "${DATAPLANE_MINOR}" ]; then
5656
exit 1
5757
fi
5858

59+
DATAPLANE_SRC_URL="https://api.github.com/repos/haproxytech/dataplaneapi/releases"
60+
DATAPLANE_V2_MINOR=$(curl -sfSL "$DATAPLANE_SRC_URL" | \
61+
grep '"tag_name":.*"v2' | \
62+
sed -E 's/.*"v?([^"]+)".*/\1/' | \
63+
sort -V | \
64+
tail -1
65+
)
66+
5967
OPENSSL_SRC_URL="https://api.github.com/repos/quictls/openssl/releases"
6068
OPENSSL_MINOR=$(curl -sfSL "$OPENSSL_SRC_URL" | \
6169
grep '"tag_name":' | \
@@ -74,5 +82,6 @@ sed -r -i -e "s!^(ENV HAPROXY_SRC_URL) .*!\1 ${HAPROXY_SRC_URL}!;
7482
s!^(LABEL Version) .*!\1 ${HAPROXY_MINOR}!;
7583
s!^(ENV HAPROXY_SHA256) .*!\1 ${HAPROXY_SHA256}!
7684
s!^(ENV DATAPLANE_MINOR) .*!\1 ${DATAPLANE_MINOR}!
85+
s!^(ENV DATAPLANE_V2_MINOR) .*!\1 ${DATAPLANE_V2_MINOR}!
7786
s!^(ENV OPENSSL_MINOR) .*!\1 ${OPENSSL_MINOR}!" \
7887
"$DOCKERFILE"

0 commit comments

Comments
 (0)