|
1 | 1 | FROM golang:alpine3.20 AS dataplaneapi-builder |
2 | 2 |
|
3 | 3 | ENV DATAPLANE_MINOR 3.0.0 |
| 4 | +ENV DATAPLANE_V2_MINOR 2.9.6 |
4 | 5 | ENV DATAPLANE_URL https://github.com/haproxytech/dataplaneapi.git |
5 | 6 |
|
6 | 7 | RUN apk add --no-cache ca-certificates git make && \ |
7 | 8 | git clone "${DATAPLANE_URL}" "${GOPATH}/src/github.com/haproxytech/dataplaneapi" && \ |
8 | 9 | cd "${GOPATH}/src/github.com/haproxytech/dataplaneapi" && \ |
9 | 10 | 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 |
11 | 15 |
|
12 | 16 | FROM alpine:3.20 AS openssl-builder |
13 | 17 |
|
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 |
15 | 19 |
|
16 | 20 | RUN apk add --no-cache curl build-base make autoconf automake gcc libc-dev linux-headers && \ |
17 | 21 | curl -sfSL "${OPENSSL_URL}" -o openssl.tar.gz && \ |
@@ -39,14 +43,11 @@ ENV HAPROXY_MINOR 3.1-dev7 |
39 | 43 | ENV HAPROXY_SHA256 d6112b8b3f6041632c02ef89bd585184a4a1115d251a767fb18c01082bb0a4a0 |
40 | 44 | ENV HAPROXY_SRC_URL http://www.haproxy.org/download |
41 | 45 |
|
42 | | -ENV DATAPLANE_MINOR 3.0.0 |
43 | | -ENV DATAPLANE_SHA256 ec685350576898bb0a00d656f427f5da7c28043551a3e0050c1b5301547e235a |
44 | | -ENV DATAPLANE_URL https://github.com/haproxytech/dataplaneapi/releases/download |
45 | | - |
46 | 46 | ENV HAPROXY_UID haproxy |
47 | 47 | ENV HAPROXY_GID haproxy |
48 | 48 |
|
49 | 49 | COPY --from=dataplaneapi-builder /dataplaneapi /usr/local/bin/dataplaneapi |
| 50 | +COPY --from=dataplaneapi-builder /dataplaneapi-v2 /usr/local/bin/dataplaneapi-v2 |
50 | 51 | COPY --from=openssl-builder /opt/quictls /opt/quictls |
51 | 52 |
|
52 | 53 | RUN apk add --no-cache ca-certificates && \ |
@@ -78,6 +79,8 @@ RUN apk add --no-cache ca-certificates && \ |
78 | 79 | rm -rf /tmp/haproxy && \ |
79 | 80 | chmod +x /usr/local/bin/dataplaneapi && \ |
80 | 81 | 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 && \ |
81 | 84 | touch /usr/local/etc/haproxy/dataplaneapi.yml && \ |
82 | 85 | chown "$HAPROXY_UID:$HAPROXY_GID" /usr/local/etc/haproxy/dataplaneapi.yml && \ |
83 | 86 | apk del build-deps && \ |
|
0 commit comments