-
Notifications
You must be signed in to change notification settings - Fork 2
/
Containerfile
57 lines (46 loc) · 2.08 KB
/
Containerfile
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM registry.access.redhat.com/ubi8/ubi-minimal as ubi8-perl-ruby
MAINTAINER Jordi Sola <jordisola@redhat.com>
LABEL maintainer="Jordi Sola <jordisola@redhat.com>" \
name="ubi8-perl-ruby" \
version="0.1-SNAPSHOT" \
description="UBI8 based image containing perl and ruby interpreters" \
summary="UBI8 based image containing perl and ruby interpreters" \
io.k8s.description="UBI8 based image containing perl and ruby interpreters" \
io.k8s.display-name="ubi8-perl-ruby" \
io.openshift.tags="perl ruby"
# Install perl and ruby interpreter
RUN microdnf update -y && \
microdnf install -y perl ruby && \
microdnf clean all
###
FROM ubi8-perl-ruby
# Docker arguments to facilitate image extension
ARG SCRIPTS_DIR="/bin"
ARG EXTRA_ARGS=""
ARG CFG_FILE="${SCRIPTS_DIR}/xmlformat.conf"
LABEL \
name="XMLFormat" \
version="1.9" \
License="GPLv3+" \
vendor="" \
description="Container image wrapping XML formater by Kitebird (http://www.kitebird.com/software/xmlformat/)" \
summary="Container image wrapping XML formater by Kitebird (http://www.kitebird.com/software/xmlformat/)" \
org.label-schema.name="XMLFormat" \
org.label-schema.description="Container image wrapping XML formater by Kitebird (http://www.kitebird.com/software/xmlformat/)" \
org.label-schema.url="https://github.com/someth2say/xmlformat" \
org.label-schema.vcs-url="https://github.com/someth2say/xmlformat" \
org.label-schema.vcs-ref="" \
org.label-schema.schema-version="1.0" \
io.k8s.description="Container image wrapping XML formater by Kitebird (http://www.kitebird.com/software/xmlformat/)" \
io.k8s.display-name="XMLFormat" \
io.openshift.tags="xml format perl ruby"
# Environment to be used by the xmlformat.sh script
ENV PATH=${SCRIPTS_DIR}:$PATH \
XMLFORMAT_CONF=${CFG_FILE} \
XMLFORMAT_ARGS=${EXTRA_ARGS}
# Copy the root scripts to the scripts folder
ADD bin ${SCRIPTS_DIR}
# Make scripts executable by root group, just in case
RUN chgrp -R 0 ${SCRIPTS_DIR} && \
chmod -R g=u ${SCRIPTS_DIR}
ENTRYPOINT [ "xmlformat.rb" ]