Skip to content

Commit

Permalink
Add HAProxy 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWolla committed May 29, 2024
1 parent 25aca1c commit 9a4501c
Show file tree
Hide file tree
Showing 5 changed files with 255 additions and 0 deletions.
111 changes: 111 additions & 0 deletions 3.1/Dockerfile

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

103 changes: 103 additions & 0 deletions 3.1/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 3.1/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 3.1/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 @@ -45,5 +45,12 @@
"sha256": "5aad97416216d2cd9dd212eb674839c40cd387f60fbc4b13d7ea3f1e5664a814",
"url": "https://www.haproxy.org/download/3.0/src/haproxy-3.0.0.tar.gz",
"version": "3.0.0"
},
"3.1": {
"alpine": "3.20",
"debian": "bookworm-slim",
"sha256": "726b6429dc11317b38a945b81fffdcab4e98aa51361aa678f95bd69d0bf6ea4f",
"url": "https://www.haproxy.org/download/3.1/src/devel/haproxy-3.1-dev0.tar.gz",
"version": "3.1-dev0"
}
}

0 comments on commit 9a4501c

Please sign in to comment.