Skip to content

Commit

Permalink
Merge pull request #222 from TimWolla/haproxy-3.0
Browse files Browse the repository at this point in the history
Add HAProxy 3.0
  • Loading branch information
yosifkit authored Dec 5, 2023
2 parents 81e9df2 + e3fc1f8 commit c5aae27
Show file tree
Hide file tree
Showing 5 changed files with 240 additions and 0 deletions.
103 changes: 103 additions & 0 deletions 3.0/Dockerfile

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

96 changes: 96 additions & 0 deletions 3.0/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.0/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.0/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 @@ -47,5 +47,12 @@
"sha256": "fba18acd1a46337fe20ae07c816c2496c8602b80a1bc9ff3768d4caa5fb80eab",
"url": "https://www.haproxy.org/download/2.9/src/haproxy-2.9.0.tar.gz",
"version": "2.9.0"
},
"3.0": {
"alpine": "3.18",
"debian": "bullseye-slim",
"sha256": "47c387d203ab00b5501017691f741375359a161216a84b17e55e48f2e84adc9f",
"url": "https://www.haproxy.org/download/3.0/src/devel/haproxy-3.0-dev0.tar.gz",
"version": "3.0-dev0"
}
}

0 comments on commit c5aae27

Please sign in to comment.