2.6.0-debian-11-r0 release

This commit is contained in:
Bitnami Bot 2022-06-06 10:33:45 +00:00 committed by Bitnami Containers
parent df29cbe049
commit 11aae2b832
7 changed files with 110 additions and 2 deletions

View File

@ -0,0 +1,30 @@
FROM docker.io/bitnami/minideb:bullseye
LABEL maintainer "Bitnami <containers@bitnami.com>"
ENV HOME="/" \
OS_ARCH="amd64" \
OS_FLAVOUR="debian-11" \
OS_NAME="linux"
COPY prebuildfs /
# Install required system packages and dependencies
RUN install_packages ca-certificates curl gzip libc6 libssl1.1 procps tar wget
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/haproxy-dataplaneapi-2.5.3-0-linux-amd64-debian-11.tar.gz && \
echo "8ebb129789299b720e34ef1d5713f56068e2202e7b0cccc33f8612c6734bc88c /tmp/bitnami/pkg/cache/haproxy-dataplaneapi-2.5.3-0-linux-amd64-debian-11.tar.gz" | sha256sum -c - && \
tar -zxf /tmp/bitnami/pkg/cache/haproxy-dataplaneapi-2.5.3-0-linux-amd64-debian-11.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
rm -rf /tmp/bitnami/pkg/cache/haproxy-dataplaneapi-2.5.3-0-linux-amd64-debian-11.tar.gz
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/haproxy-2.6.0-1-linux-amd64-debian-11.tar.gz && \
echo "5c3ca28ed9dc4bc8e7cc5ce1fac3a34f8c26bd105ccb564c7cb071efcaf7d771 /tmp/bitnami/pkg/cache/haproxy-2.6.0-1-linux-amd64-debian-11.tar.gz" | sha256sum -c - && \
tar -zxf /tmp/bitnami/pkg/cache/haproxy-2.6.0-1-linux-amd64-debian-11.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
rm -rf /tmp/bitnami/pkg/cache/haproxy-2.6.0-1-linux-amd64-debian-11.tar.gz
RUN apt-get update && apt-get upgrade -y && \
rm -r /var/lib/apt/lists /var/cache/apt/archives
RUN chmod g+rwX /opt/bitnami
ENV APP_VERSION="2.6.0" \
BITNAMI_APP_NAME="haproxy" \
PATH="/opt/bitnami/haproxy-dataplaneapi/bin:/opt/bitnami/haproxy/sbin:$PATH"
USER 1001
ENTRYPOINT [ "/opt/bitnami/haproxy/sbin/haproxy" ]
CMD [ "-f", "/bitnami/haproxy/conf/haproxy.cfg" ]

View File

@ -0,0 +1,4 @@
version: '2'
services:
haproxy:
image: docker.io/bitnami/haproxy:2

View File

@ -0,0 +1,31 @@
global
log 127.0.0.1 local2
maxconn 4096
defaults
mode http
log global
option httplog
option dontlognull
option http-server-close
option forwardfor except 127.0.0.0/8
option redispatch
retries 3
timeout http-request 20s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout http-keep-alive 30s
timeout check 10s
maxconn 3000
frontend fe_http
option forwardfor except 127.0.0.1
option httpclose
bind *:8080
default_backend be_http
backend be_http
balance roundrobin
server nginx service:8080 check port 8080

View File

@ -0,0 +1,16 @@
{
"haproxy": {
"arch": "amd64",
"digest": "5c3ca28ed9dc4bc8e7cc5ce1fac3a34f8c26bd105ccb564c7cb071efcaf7d771",
"distro": "debian-11",
"type": "NAMI",
"version": "2.6.0-1"
},
"haproxy-dataplaneapi": {
"arch": "amd64",
"digest": "8ebb129789299b720e34ef1d5713f56068e2202e7b0cccc33f8612c6734bc88c",
"distro": "debian-11",
"type": "NAMI",
"version": "2.5.3-0"
}
}

View File

@ -0,0 +1,3 @@
Bitnami containers ship with software bundles. You can find the licenses under:
/opt/bitnami/nami/COPYING
/opt/bitnami/[name-of-bundle]/licenses/[bundle-version].txt

View File

@ -0,0 +1,24 @@
#!/bin/sh
set -e
set -u
export DEBIAN_FRONTEND=noninteractive
n=0
max=2
until [ $n -gt $max ]; do
set +e
(
apt-get update -qq &&
apt-get install -y --no-install-recommends "$@"
)
CODE=$?
set -e
if [ $CODE -eq 0 ]; then
break
fi
if [ $n -eq $max ]; then
exit $CODE
fi
echo "apt failed, retrying"
n=$(($n + 1))
done
rm -r /var/lib/apt/lists /var/cache/apt/archives

View File

@ -28,7 +28,7 @@ $ docker run --name haproxy bitnami/haproxy:latest
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/).
* [`2`, `2-debian-10`, `2.6.0`, `2.6.0-debian-10-r4`, `latest` (2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-haproxy/blob/2.6.0-debian-10-r4/2/debian-10/Dockerfile)
* [`2`, `2-debian-11`, `2.6.0`, `2.6.0-debian-11-r0`, `latest` (2/debian-11/Dockerfile)](https://github.com/bitnami/bitnami-docker-haproxy/blob/2.6.0-debian-11-r0/2/debian-11/Dockerfile)
Subscribe to project updates by watching the [bitnami/haproxy GitHub repo](https://github.com/bitnami/bitnami-docker-haproxy).
@ -49,7 +49,7 @@ $ docker pull bitnami/haproxy:[TAG]
If you wish, you can also build the image yourself.
```console
$ docker build -t bitnami/haproxy:latest 'https://github.com/bitnami/bitnami-docker-haproxy.git#master:2/debian-10'
$ docker build -t bitnami/haproxy:latest 'https://github.com/bitnami/bitnami-docker-haproxy.git#master:2/debian-11'
```
## Why use a non-root container?