Skip to content

Commit 145ec9c

Browse files
committed
Remove 2.0 branch. Bring back dataplaneapi v2 as /usr/local/bin/dataplaneapi-v2
1 parent 3d5771f commit 145ec9c

File tree

13 files changed

+68
-212
lines changed

13 files changed

+68
-212
lines changed

.github/workflows/docker_manual.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
packages: write
1010
strategy:
1111
matrix:
12-
branch: ["2.0", "2.2", "2.4", "2.6", "2.8", "2.9", "3.0", "3.1"]
12+
branch: ["2.2", "2.4", "2.6", "2.8", "2.9", "3.0", "3.1"]
1313
env:
1414
DOCKER_PLATFORMS: linux/amd64,linux/arm/v7,linux/arm64
1515
DOCKER_IMAGE: haproxytech/haproxy-debian

2.0/Dockerfile

Lines changed: 0 additions & 83 deletions
This file was deleted.

2.0/docker-entrypoint.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

2.0/haproxy.cfg

Lines changed: 0 additions & 102 deletions
This file was deleted.

2.2/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
FROM golang:alpine3.20 AS 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 debian:buster-slim
1317

@@ -34,6 +38,7 @@ ENV HAPROXY_GID haproxy
3438
ENV DEBIAN_FRONTEND noninteractive
3539

3640
COPY --from=builder /dataplaneapi /usr/local/bin/dataplaneapi
41+
COPY --from=builder /dataplaneapi-v2 /usr/local/bin/dataplaneapi-v2
3742

3843
RUN apt-get update && \
3944
apt-get install -y --no-install-recommends procps libssl1.1 zlib1g "libpcre2-*" liblua5.3-0 libatomic1 tar curl socat ca-certificates && \
@@ -71,6 +76,8 @@ RUN apt-get update && \
7176
rm -rf /var/lib/apt/lists/* && \
7277
chmod +x /usr/local/bin/dataplaneapi && \
7378
ln -s /usr/local/bin/dataplaneapi /usr/bin/dataplaneapi && \
79+
chmod +x /usr/local/bin/dataplaneapi-v2 && \
80+
ln -s /usr/local/bin/dataplaneapi-v2 /usr/bin/dataplaneapi-v2 && \
7481
touch /usr/local/etc/haproxy/dataplaneapi.yml && \
7582
chown "$HAPROXY_UID:$HAPROXY_GID" /usr/local/etc/haproxy/dataplaneapi.yml
7683

2.4/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
FROM golang:alpine3.20 AS 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 debian:bookworm-slim
1317

@@ -30,6 +34,7 @@ ENV HAPROXY_GID haproxy
3034
ENV DEBIAN_FRONTEND noninteractive
3135

3236
COPY --from=builder /dataplaneapi /usr/local/bin/dataplaneapi
37+
COPY --from=builder /dataplaneapi-v2 /usr/local/bin/dataplaneapi-v2
3338

3439
RUN apt-get update && \
3540
apt-get install -y --no-install-recommends procps libssl3 zlib1g "libpcre2-*" liblua5.4-0 libatomic1 tar curl socat ca-certificates libjemalloc2 && \
@@ -61,6 +66,8 @@ RUN apt-get update && \
6166
rm -rf /var/lib/apt/lists/* && \
6267
chmod +x /usr/local/bin/dataplaneapi && \
6368
ln -s /usr/local/bin/dataplaneapi /usr/bin/dataplaneapi && \
69+
chmod +x /usr/local/bin/dataplaneapi-v2 && \
70+
ln -s /usr/local/bin/dataplaneapi-v2 /usr/bin/dataplaneapi-v2 && \
6471
touch /usr/local/etc/haproxy/dataplaneapi.yml && \
6572
chown "$HAPROXY_UID:$HAPROXY_GID" /usr/local/etc/haproxy/dataplaneapi.yml
6673

2.6/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
FROM golang:alpine3.20 AS 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 debian:bookworm-slim
1317

@@ -30,6 +34,7 @@ ENV HAPROXY_GID haproxy
3034
ENV DEBIAN_FRONTEND noninteractive
3135

3236
COPY --from=builder /dataplaneapi /usr/local/bin/dataplaneapi
37+
COPY --from=builder /dataplaneapi-v2 /usr/local/bin/dataplaneapi-v2
3338

3439
RUN apt-get update && \
3540
apt-get install -y --no-install-recommends procps libssl3 zlib1g "libpcre2-*" liblua5.4-0 libatomic1 tar curl socat ca-certificates libjemalloc2 && \
@@ -61,6 +66,8 @@ RUN apt-get update && \
6166
rm -rf /var/lib/apt/lists/* && \
6267
chmod +x /usr/local/bin/dataplaneapi && \
6368
ln -s /usr/local/bin/dataplaneapi /usr/bin/dataplaneapi && \
69+
chmod +x /usr/local/bin/dataplaneapi-v2 && \
70+
ln -s /usr/local/bin/dataplaneapi-v2 /usr/bin/dataplaneapi-v2 && \
6471
touch /usr/local/etc/haproxy/dataplaneapi.yml && \
6572
chown "$HAPROXY_UID:$HAPROXY_GID" /usr/local/etc/haproxy/dataplaneapi.yml
6673

2.8/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
FROM golang:alpine3.20 AS 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 debian:bookworm-slim
1317

@@ -30,6 +34,7 @@ ENV HAPROXY_GID haproxy
3034
ENV DEBIAN_FRONTEND noninteractive
3135

3236
COPY --from=builder /dataplaneapi /usr/local/bin/dataplaneapi
37+
COPY --from=builder /dataplaneapi-v2 /usr/local/bin/dataplaneapi-v2
3338

3439
RUN apt-get update && \
3540
apt-get install -y --no-install-recommends procps libssl3 zlib1g "libpcre2-*" liblua5.4-0 libatomic1 tar curl socat ca-certificates libjemalloc2 && \
@@ -62,6 +67,8 @@ RUN apt-get update && \
6267
rm -rf /var/lib/apt/lists/* && \
6368
chmod +x /usr/local/bin/dataplaneapi && \
6469
ln -s /usr/local/bin/dataplaneapi /usr/bin/dataplaneapi && \
70+
chmod +x /usr/local/bin/dataplaneapi-v2 && \
71+
ln -s /usr/local/bin/dataplaneapi-v2 /usr/bin/dataplaneapi-v2 && \
6572
touch /usr/local/etc/haproxy/dataplaneapi.yml && \
6673
chown "$HAPROXY_UID:$HAPROXY_GID" /usr/local/etc/haproxy/dataplaneapi.yml
6774

2.9/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
FROM golang:alpine3.20 AS 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 debian:bookworm-slim
1317

@@ -30,6 +34,7 @@ ENV HAPROXY_GID haproxy
3034
ENV DEBIAN_FRONTEND noninteractive
3135

3236
COPY --from=builder /dataplaneapi /usr/local/bin/dataplaneapi
37+
COPY --from=builder /dataplaneapi-v2 /usr/local/bin/dataplaneapi-v2
3338

3439
RUN apt-get update && \
3540
apt-get install -y --no-install-recommends procps libssl3 zlib1g "libpcre2-*" liblua5.4-0 libatomic1 tar curl socat ca-certificates libjemalloc2 && \
@@ -62,6 +67,8 @@ RUN apt-get update && \
6267
rm -rf /var/lib/apt/lists/* && \
6368
chmod +x /usr/local/bin/dataplaneapi && \
6469
ln -s /usr/local/bin/dataplaneapi /usr/bin/dataplaneapi && \
70+
chmod +x /usr/local/bin/dataplaneapi-v2 && \
71+
ln -s /usr/local/bin/dataplaneapi-v2 /usr/bin/dataplaneapi-v2 && \
6572
touch /usr/local/etc/haproxy/dataplaneapi.yml && \
6673
chown "$HAPROXY_UID:$HAPROXY_GID" /usr/local/etc/haproxy/dataplaneapi.yml
6774

0 commit comments

Comments
 (0)