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
8e044762
Commit
8e044762
authored
3 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Added the httpd image.
parent
28cac3fa
No related branches found
No related tags found
No related merge requests found
Pipeline
#1547
passed
3 years ago
Stage: test
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+19
-0
19 additions, 0 deletions
.gitlab-ci.yml
httpd/.dockerignore
+1
-0
1 addition, 0 deletions
httpd/.dockerignore
httpd/Dockerfile
+28
-0
28 additions, 0 deletions
httpd/Dockerfile
with
48 additions
and
0 deletions
.gitlab-ci.yml
+
19
−
0
View file @
8e044762
...
@@ -15,6 +15,8 @@ stages:
...
@@ -15,6 +15,8 @@ stages:
variables
:
variables
:
TAG
:
latest
TAG
:
latest
# Job templates:
.build
:
.build
:
stage
:
build
stage
:
build
variables
:
variables
:
...
@@ -42,6 +44,8 @@ variables:
...
@@ -42,6 +44,8 @@ variables:
-
docker push "registry.shore.co.il/$IMAGE:$TAG"
-
docker push "registry.shore.co.il/$IMAGE:$TAG"
rules
:
*rules
rules
:
*rules
# cgit image:
build-cgit
:
build-cgit
:
extends
:
.build
extends
:
.build
variables
:
variables
:
...
@@ -54,3 +58,18 @@ push-cgit:
...
@@ -54,3 +58,18 @@ push-cgit:
needs
:
needs
:
-
job
:
build-cgit
-
job
:
build-cgit
artifacts
:
true
artifacts
:
true
# httpd image:
build-httpd
:
extends
:
.build
variables
:
IMAGE
:
httpd
push-httpd
:
extends
:
.push
variables
:
IMAGE
:
httpd
needs
:
-
job
:
build-httpd
artifacts
:
true
This diff is collapsed.
Click to expand it.
httpd/.dockerignore
0 → 100644
+
1
−
0
View file @
8e044762
*
This diff is collapsed.
Click to expand it.
httpd/Dockerfile
0 → 100644
+
28
−
0
View file @
8e044762
FROM
registry.hub.docker.com/library/debian:buster-slim
# 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
www-data
-g
www-data
-m
755 /run/apache2
&&
\
install
-d
-o
www-data
-g
www-data
-m
755 /var/log/apache2
&&
\
ln
-sf
/dev/stdout /var/log/apache2/access.log
&&
\
ln
-sf
/dev/stderr /var/log/apache2/error.log
&&
\
ln
-sf
/dev/stdout /var/log/apache2/other_vhosts_access.log
&&
\
rm
-rf
/tmp/
*
/var/tmp/
*
/var/lib/apt/lists/
*
/var/cache/apt/archives/
*
ENV
APACHE_RUN_DIR=/run/apache2 \
APACHE_LOG_DIR=/var/log/apache2 \
APACHE_RUN_USER=www-data \
APACHE_RUN_GROUP=www-data \
APACHE_PID_FILE=/run/apache2/apache2.pid
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