Loading .gitlab-ci.yml +20 −3 Original line number Diff line number Diff line Loading @@ -43,19 +43,36 @@ push-cgit: build-httpd: extends: .container-build-base variables: CONTEXT: httpd/bullseye CONTEXT: httpd/bookworm push-httpd: extends: .container-push-base variables: CONTEXT: httpd/bullseye CONTEXT: httpd/bookworm IMAGE: httpd needs: - job: build-httpd 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: build-httpd-bullseye: extends: .container-build-base variables: CONTEXT: httpd/bullseye push-httpd-bullseye: extends: .container-push-base variables: Loading @@ -63,7 +80,7 @@ push-httpd-bullseye: IMAGE: httpd TAG: bullseye needs: - job: build-httpd - job: build-httpd-bullseye artifacts: true # httpd buster image: Loading httpd/bookworm/.dockerignore 0 → 100644 +1 −0 Original line number Diff line number Diff line * httpd/bookworm/Dockerfile 0 → 100644 +30 −0 Original line number Diff line number Diff line 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 Loading
.gitlab-ci.yml +20 −3 Original line number Diff line number Diff line Loading @@ -43,19 +43,36 @@ push-cgit: build-httpd: extends: .container-build-base variables: CONTEXT: httpd/bullseye CONTEXT: httpd/bookworm push-httpd: extends: .container-push-base variables: CONTEXT: httpd/bullseye CONTEXT: httpd/bookworm IMAGE: httpd needs: - job: build-httpd 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: build-httpd-bullseye: extends: .container-build-base variables: CONTEXT: httpd/bullseye push-httpd-bullseye: extends: .container-push-base variables: Loading @@ -63,7 +80,7 @@ push-httpd-bullseye: IMAGE: httpd TAG: bullseye needs: - job: build-httpd - job: build-httpd-bullseye artifacts: true # httpd buster image: Loading
httpd/bookworm/Dockerfile 0 → 100644 +30 −0 Original line number Diff line number Diff line 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