Skip to content
Snippets Groups Projects
Commit e478c063 authored by nimrod's avatar nimrod
Browse files

Add httpd:bookworm.

parent 1569fd2c
No related branches found
No related tags found
No related merge requests found
Pipeline #3436 passed
...@@ -43,19 +43,36 @@ push-cgit: ...@@ -43,19 +43,36 @@ push-cgit:
build-httpd: build-httpd:
extends: .container-build-base extends: .container-build-base
variables: variables:
CONTEXT: httpd/bullseye CONTEXT: httpd/bookworm
push-httpd: push-httpd:
extends: .container-push-base extends: .container-push-base
variables: variables:
CONTEXT: httpd/bullseye CONTEXT: httpd/bookworm
IMAGE: httpd IMAGE: httpd
needs: needs:
- job: build-httpd - job: build-httpd
artifacts: true artifacts: true
# httpd bookworm image:
push-httpd-bookworm:
extends: .container-push-base
variables:
CONTEXT: httpd/bookworm
IMAGE: httpd
TAG: bookworm
needs:
- job: build-httpd
artifacts: true
# httpd bullseye image: # httpd bullseye image:
build-httpd-bullseye:
extends: .container-build-base
variables:
CONTEXT: httpd/bullseye
push-httpd-bullseye: push-httpd-bullseye:
extends: .container-push-base extends: .container-push-base
variables: variables:
...@@ -63,7 +80,7 @@ push-httpd-bullseye: ...@@ -63,7 +80,7 @@ push-httpd-bullseye:
IMAGE: httpd IMAGE: httpd
TAG: bullseye TAG: bullseye
needs: needs:
- job: build-httpd - job: build-httpd-bullseye
artifacts: true artifacts: true
# httpd buster image: # httpd buster image:
......
*
FROM registry.hub.docker.com/library/debian:bookworm-slim
ENV APACHE_RUN_DIR=/run/apache2 \
APACHE_LOCK_DIR=/var/lock/apache2 \
APACHE_LOG_DIR=/var/log/apache2 \
APACHE_RUN_USER=www-data \
APACHE_RUN_GROUP=www-data \
APACHE_PID_FILE=/run/apache2/apache2.pid
# hadolint ignore=DL3008,DL3015
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
apache2 \
libcap2-bin \
wget \
&& \
setcap CAP_NET_BIND_SERVICE=+ep /usr/sbin/apache2 && \
DEBIAN_FRONTEND=noninteractive apt-get purge --auto-remove -y libcap2-bin && \
a2enmod status && \
install -d -o "$APACHE_RUN_USER" -g "$APACHE_RUN_GROUP" -m 755 "$APACHE_RUN_DIR" && \
install -d -o "$APACHE_RUN_USER" -g "$APACHE_RUN_GROUP" -m 755 "$APACHE_LOCK_DIR" && \
install -d -o "$APACHE_RUN_USER" -g "$APACHE_RUN_GROUP" -m 755 "$APACHE_LOG_DIR" && \
ln -sf /dev/stdout "$APACHE_LOG_DIR/access.log" && \
ln -sf /dev/stderr "$APACHE_LOG_DIR/error.log" && \
ln -sf /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log" && \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/*
RUN apache2 -t
EXPOSE 80
CMD [ "apache2", "-DFOREGROUND" ]
USER "www-data"
WORKDIR /var/www
HEALTHCHECK CMD wget --spider --quiet http://localhost/server-status --user-agent 'Healthcheck' || exit 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment