Skip to content

Commit

Permalink
Add HAProxy 2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWolla authored and tianon committed May 31, 2023
1 parent 0ab952a commit f389054
Show file tree
Hide file tree
Showing 5 changed files with 240 additions and 0 deletions.
103 changes: 103 additions & 0 deletions 2.9/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

96 changes: 96 additions & 0 deletions 2.9/alpine/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions 2.9/alpine/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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 "$@"
17 changes: 17 additions & 0 deletions 2.9/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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 "$@"
7 changes: 7 additions & 0 deletions versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,12 @@
"sha256": "61cdafb5db7e9174d0757b8e4bcde938352306fb7cc8ff2b5f55c26dd48a6cf7",
"url": "https://www.haproxy.org/download/2.8/src/haproxy-2.8.0.tar.gz",
"version": "2.8.0"
},
"2.9": {
"alpine": "3.17",
"debian": "bullseye-slim",
"sha256": "3dce5c3d6b515ccbf592862cc20b799fc111e296c0ac59fe602bf0980cdd5169",
"url": "https://www.haproxy.org/download/2.9/src/devel/haproxy-2.9-dev0.tar.gz",
"version": "2.9-dev0"
}
}

0 comments on commit f389054

Please sign in to comment.