Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Dockerfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shore
Dockerfiles
Commits
e478c063
Commit
e478c063
authored
1 year ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Add httpd:bookworm.
parent
1569fd2c
No related branches found
No related tags found
No related merge requests found
Pipeline
#3436
passed
1 year ago
Stage: .pre
Stage: build-base
Stage: deploy-base
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+20
-3
20 additions, 3 deletions
.gitlab-ci.yml
httpd/bookworm/.dockerignore
+1
-0
1 addition, 0 deletions
httpd/bookworm/.dockerignore
httpd/bookworm/Dockerfile
+30
-0
30 additions, 0 deletions
httpd/bookworm/Dockerfile
with
51 additions
and
3 deletions
.gitlab-ci.yml
+
20
−
3
View file @
e478c063
...
@@ -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/b
ullseye
CONTEXT
:
httpd/b
ookworm
push-httpd
:
push-httpd
:
extends
:
.container-push-base
extends
:
.container-push-base
variables
:
variables
:
CONTEXT
:
httpd/b
ullseye
CONTEXT
:
httpd/b
ookworm
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:
...
...
This diff is collapsed.
Click to expand it.
httpd/bookworm/.dockerignore
0 → 100644
+
1
−
0
View file @
e478c063
*
This diff is collapsed.
Click to expand it.
httpd/bookworm/Dockerfile
0 → 100644
+
30
−
0
View file @
e478c063
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment