forked from krestomatio/container_builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (33 loc) · 1.35 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Ansible managed
FROM quay.io/krestomatio/httpd
# General variables
ENV IMAGE_NAME="moodle_httpd" \
IMAGE_SUMMARY="Apache ${HTTPD_VERSION} for Moodle 3.9" \
IMAGE_DESCRIPTION="This CentOS 8 Stream minimal based container image runs Apache ${HTTPD_VERSION} for Moodle 3.9" \
IMAGE_TITLE="Apache ${HTTPD_VERSION} for Moodle3.9 " \
TZ="UTC"
# Component bash variables
ENV MOODLE_VERSION="3.9" \
MOODLE_VERSION_SHORT="39" \
MOODLE_APP=${APP_DEST} \
MOODLE_DATA=/var/moodledata \
MOODLE_CHECK_PATH=/login/index.php \
MOODLE_CHECK_CODE="200" \
MOODLE_CHECK_HOST=localhost
USER 0
COPY conf/usr/bin /usr/bin/
COPY conf/usr/libexec /usr/libexec/
RUN container-setup
RUN container-setup-httpd-moodle
USER ${CTR_USER_ID}
# Labels
LABEL name="${IMAGE_NAME}" \
summary="${IMAGE_SUMMARY}" \
description="${IMAGE_DESCRIPTION}" \
maintainer="Job Céspedes Ortiz <[email protected]>" \
org.opencontainers.image.title="${IMAGE_TITLE}" \
org.opencontainers.image.description="${IMAGE_DESCRIPTION}" \
org.opencontainers.image.version="0.1" \
io.k8s.description="${IMAGE_DESCRIPTION}" \
io.k8s.display-name="${IMAGE_TITLE}" \
io.openshift.tags="${IMAGE_NAME},apache,apache${HTTPD_VER_SHORT},apache-${HTTPD_VER_SHORT},moodle,moodle${MOODLE_VERSION_SHORT},moodle-${MOODLE_VERSION_SHORT}"