mirror of
https://github.com/docker-library/haproxy.git
synced 2026-11-20 21:29:04 +03:00
Resolving missing ca-certificates dependency that causes client ssl verify to fail
Without this package, '/etc/ssl/certs' is either empty or incomplete, and so does the @system-ca variable within haproxy. This results in some haproxy client ssl features not working out of the box. For instance, using httpclient with https endpoints will not work with default config since ssl verify is on by default. See PR #216. Co-authored-by: Tianon Gravi <admwiggin@gmail.com>
This commit is contained in:
1 parent
edf0471abc
commit
71cd0194b9
17 files changed
+144
-9
No files matched your search
Generated
+9
-1
@@ -6,6 +6,15 @@
|
||||
|
||||
FROM debian:buster-slim
|
||||
|
||||
# runtime dependencies
|
||||
RUN set -eux; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
# @system-ca: https://github.com/docker-library/haproxy/pull/216
|
||||
ca-certificates \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# roughly, https://salsa.debian.org/haproxy-team/haproxy/-/blob/732b97ae286906dea19ab5744cf9cf97c364ac1d/debian/haproxy.postinst#L5-6
|
||||
RUN set -eux; \
|
||||
groupadd --gid 99 --system haproxy; \
|
||||
@@ -29,7 +38,6 @@ RUN set -eux; \
|
||||
\
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
gcc \
|
||||
libc6-dev \
|
||||
liblua5.3-dev \
|
||||
|
||||
Generated
+7
@@ -6,6 +6,13 @@
|
||||
|
||||
FROM alpine:3.16
|
||||
|
||||
# runtime dependencies
|
||||
RUN set -eux; \
|
||||
apk add --no-cache \
|
||||
# @system-ca: https://github.com/docker-library/haproxy/pull/216
|
||||
ca-certificates \
|
||||
;
|
||||
|
||||
# roughly, https://git.alpinelinux.org/aports/tree/main/haproxy/haproxy.pre-install?h=3.12-stable
|
||||
RUN set -eux; \
|
||||
addgroup --gid 99 --system haproxy; \
|
||||
|
||||
Generated
+9
-1
@@ -6,6 +6,15 @@
|
||||
|
||||
FROM debian:bullseye-slim
|
||||
|
||||
# runtime dependencies
|
||||
RUN set -eux; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
# @system-ca: https://github.com/docker-library/haproxy/pull/216
|
||||
ca-certificates \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# roughly, https://salsa.debian.org/haproxy-team/haproxy/-/blob/732b97ae286906dea19ab5744cf9cf97c364ac1d/debian/haproxy.postinst#L5-6
|
||||
RUN set -eux; \
|
||||
groupadd --gid 99 --system haproxy; \
|
||||
@@ -29,7 +38,6 @@ RUN set -eux; \
|
||||
\
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
gcc \
|
||||
libc6-dev \
|
||||
liblua5.3-dev \
|
||||
|
||||
Generated
+7
@@ -6,6 +6,13 @@
|
||||
|
||||
FROM alpine:3.16
|
||||
|
||||
# runtime dependencies
|
||||
RUN set -eux; \
|
||||
apk add --no-cache \
|
||||
# @system-ca: https://github.com/docker-library/haproxy/pull/216
|
||||
ca-certificates \
|
||||
;
|
||||
|
||||
# roughly, https://git.alpinelinux.org/aports/tree/main/haproxy/haproxy.pre-install?h=3.12-stable
|
||||
RUN set -eux; \
|
||||
addgroup --gid 99 --system haproxy; \
|
||||
|
||||
Generated
+9
-1
@@ -6,6 +6,15 @@
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
# runtime dependencies
|
||||
RUN set -eux; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
# @system-ca: https://github.com/docker-library/haproxy/pull/216
|
||||
ca-certificates \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# roughly, https://salsa.debian.org/haproxy-team/haproxy/-/blob/732b97ae286906dea19ab5744cf9cf97c364ac1d/debian/haproxy.postinst#L5-6
|
||||
RUN set -eux; \
|
||||
groupadd --gid 99 --system haproxy; \
|
||||
@@ -29,7 +38,6 @@ RUN set -eux; \
|
||||
\
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
gcc \
|
||||
libc6-dev \
|
||||
liblua5.3-dev \
|
||||
|
||||
Generated
+7
@@ -6,6 +6,13 @@
|
||||
|
||||
FROM alpine:3.19
|
||||
|
||||
# runtime dependencies
|
||||
RUN set -eux; \
|
||||
apk add --no-cache \
|
||||
# @system-ca: https://github.com/docker-library/haproxy/pull/216
|
||||
ca-certificates \
|
||||
;
|
||||
|
||||
# roughly, https://git.alpinelinux.org/aports/tree/main/haproxy/haproxy.pre-install?h=3.12-stable
|
||||
RUN set -eux; \
|
||||
addgroup --gid 99 --system haproxy; \
|
||||
|
||||
Generated
+9
-1
@@ -6,6 +6,15 @@
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
# runtime dependencies
|
||||
RUN set -eux; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
# @system-ca: https://github.com/docker-library/haproxy/pull/216
|
||||
ca-certificates \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# roughly, https://salsa.debian.org/haproxy-team/haproxy/-/blob/732b97ae286906dea19ab5744cf9cf97c364ac1d/debian/haproxy.postinst#L5-6
|
||||
RUN set -eux; \
|
||||
groupadd --gid 99 --system haproxy; \
|
||||
@@ -29,7 +38,6 @@ RUN set -eux; \
|
||||
\
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
gcc \
|
||||
libc6-dev \
|
||||
liblua5.3-dev \
|
||||
|
||||
Generated
+7
@@ -6,6 +6,13 @@
|
||||
|
||||
FROM alpine:3.19
|
||||
|
||||
# runtime dependencies
|
||||
RUN set -eux; \
|
||||
apk add --no-cache \
|
||||
# @system-ca: https://github.com/docker-library/haproxy/pull/216
|
||||
ca-certificates \
|
||||
;
|
||||
|
||||
# roughly, https://git.alpinelinux.org/aports/tree/main/haproxy/haproxy.pre-install?h=3.12-stable
|
||||
RUN set -eux; \
|
||||
addgroup --gid 99 --system haproxy; \
|
||||
|
||||
Generated
+9
-1
@@ -6,6 +6,15 @@
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
# runtime dependencies
|
||||
RUN set -eux; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
# @system-ca: https://github.com/docker-library/haproxy/pull/216
|
||||
ca-certificates \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# roughly, https://salsa.debian.org/haproxy-team/haproxy/-/blob/732b97ae286906dea19ab5744cf9cf97c364ac1d/debian/haproxy.postinst#L5-6
|
||||
RUN set -eux; \
|
||||
groupadd --gid 99 --system haproxy; \
|
||||
@@ -29,7 +38,6 @@ RUN set -eux; \
|
||||
\
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
gcc \
|
||||
libc6-dev \
|
||||
liblua5.3-dev \
|
||||
|
||||
Generated
+7
@@ -6,6 +6,13 @@
|
||||
|
||||
FROM alpine:3.19
|
||||
|
||||
# runtime dependencies
|
||||
RUN set -eux; \
|
||||
apk add --no-cache \
|
||||
# @system-ca: https://github.com/docker-library/haproxy/pull/216
|
||||
ca-certificates \
|
||||
;
|
||||
|
||||
# roughly, https://git.alpinelinux.org/aports/tree/main/haproxy/haproxy.pre-install?h=3.12-stable
|
||||
RUN set -eux; \
|
||||
addgroup --gid 99 --system haproxy; \
|
||||
|
||||
Generated
+9
-1
@@ -6,6 +6,15 @@
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
# runtime dependencies
|
||||
RUN set -eux; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
# @system-ca: https://github.com/docker-library/haproxy/pull/216
|
||||
ca-certificates \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# roughly, https://salsa.debian.org/haproxy-team/haproxy/-/blob/732b97ae286906dea19ab5744cf9cf97c364ac1d/debian/haproxy.postinst#L5-6
|
||||
RUN set -eux; \
|
||||
groupadd --gid 99 --system haproxy; \
|
||||
@@ -29,7 +38,6 @@ RUN set -eux; \
|
||||
\
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
gcc \
|
||||
libc6-dev \
|
||||
liblua5.3-dev \
|
||||
|
||||
Generated
+7
@@ -6,6 +6,13 @@
|
||||
|
||||
FROM alpine:3.19
|
||||
|
||||
# runtime dependencies
|
||||
RUN set -eux; \
|
||||
apk add --no-cache \
|
||||
# @system-ca: https://github.com/docker-library/haproxy/pull/216
|
||||
ca-certificates \
|
||||
;
|
||||
|
||||
# roughly, https://git.alpinelinux.org/aports/tree/main/haproxy/haproxy.pre-install?h=3.12-stable
|
||||
RUN set -eux; \
|
||||
addgroup --gid 99 --system haproxy; \
|
||||
|
||||
Generated
+9
-1
@@ -6,6 +6,15 @@
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
# runtime dependencies
|
||||
RUN set -eux; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
# @system-ca: https://github.com/docker-library/haproxy/pull/216
|
||||
ca-certificates \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# roughly, https://salsa.debian.org/haproxy-team/haproxy/-/blob/732b97ae286906dea19ab5744cf9cf97c364ac1d/debian/haproxy.postinst#L5-6
|
||||
RUN set -eux; \
|
||||
groupadd --gid 99 --system haproxy; \
|
||||
@@ -29,7 +38,6 @@ RUN set -eux; \
|
||||
\
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
gcc \
|
||||
libc6-dev \
|
||||
liblua5.4-dev \
|
||||
|
||||
Generated
+7
@@ -6,6 +6,13 @@
|
||||
|
||||
FROM alpine:3.19
|
||||
|
||||
# runtime dependencies
|
||||
RUN set -eux; \
|
||||
apk add --no-cache \
|
||||
# @system-ca: https://github.com/docker-library/haproxy/pull/216
|
||||
ca-certificates \
|
||||
;
|
||||
|
||||
# roughly, https://git.alpinelinux.org/aports/tree/main/haproxy/haproxy.pre-install?h=3.12-stable
|
||||
RUN set -eux; \
|
||||
addgroup --gid 99 --system haproxy; \
|
||||
|
||||
Generated
+9
-1
@@ -6,6 +6,15 @@
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
# runtime dependencies
|
||||
RUN set -eux; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
# @system-ca: https://github.com/docker-library/haproxy/pull/216
|
||||
ca-certificates \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# roughly, https://salsa.debian.org/haproxy-team/haproxy/-/blob/732b97ae286906dea19ab5744cf9cf97c364ac1d/debian/haproxy.postinst#L5-6
|
||||
RUN set -eux; \
|
||||
groupadd --gid 99 --system haproxy; \
|
||||
@@ -29,7 +38,6 @@ RUN set -eux; \
|
||||
\
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
gcc \
|
||||
libc6-dev \
|
||||
liblua5.4-dev \
|
||||
|
||||
Generated
+7
@@ -6,6 +6,13 @@
|
||||
|
||||
FROM alpine:3.19
|
||||
|
||||
# runtime dependencies
|
||||
RUN set -eux; \
|
||||
apk add --no-cache \
|
||||
# @system-ca: https://github.com/docker-library/haproxy/pull/216
|
||||
ca-certificates \
|
||||
;
|
||||
|
||||
# roughly, https://git.alpinelinux.org/aports/tree/main/haproxy/haproxy.pre-install?h=3.12-stable
|
||||
RUN set -eux; \
|
||||
addgroup --gid 99 --system haproxy; \
|
||||
|
||||
+16
-1
@@ -1,6 +1,13 @@
|
||||
{{ if env.variant == "alpine" then ( -}}
|
||||
FROM alpine:{{ .alpine }}
|
||||
|
||||
# runtime dependencies
|
||||
RUN set -eux; \
|
||||
apk add --no-cache \
|
||||
# @system-ca: https://github.com/docker-library/haproxy/pull/216
|
||||
ca-certificates \
|
||||
;
|
||||
|
||||
# roughly, https://git.alpinelinux.org/aports/tree/main/haproxy/haproxy.pre-install?h=3.12-stable
|
||||
RUN set -eux; \
|
||||
addgroup --gid 99 --system haproxy; \
|
||||
@@ -18,6 +25,15 @@ RUN set -eux; \
|
||||
{{ ) else ( -}}
|
||||
FROM debian:{{ .debian }}
|
||||
|
||||
# runtime dependencies
|
||||
RUN set -eux; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
# @system-ca: https://github.com/docker-library/haproxy/pull/216
|
||||
ca-certificates \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# roughly, https://salsa.debian.org/haproxy-team/haproxy/-/blob/732b97ae286906dea19ab5744cf9cf97c364ac1d/debian/haproxy.postinst#L5-6
|
||||
RUN set -eux; \
|
||||
groupadd --gid 99 --system haproxy; \
|
||||
@@ -72,7 +88,6 @@ RUN set -eux; \
|
||||
{{ ) else ( -}}
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
gcc \
|
||||
libc6-dev \
|
||||
liblua{{ lua }}-dev \
|
||||
|
||||
Reference in new issue
Block a user