1
- FROM registry.access.redhat.com/ubi8/ubi-minimal as perl
1
+ FROM registry.access.redhat.com/ubi8/ubi-minimal as ubi8- perl-ruby
2
2
MAINTAINER Jordi Sola <
[email protected] >
3
3
4
4
LABEL maintainer=
"Jordi Sola <[email protected] >" \
5
- name="XMLFormat" \
6
- vcs-ref="TBD" \
5
+ name="ubi8-perl-ruby" \
7
6
version="0.1-SNAPSHOT" \
8
- build-date="TBD" \
7
+ description="UBI8 based image containing perl and ruby interpreters" \
8
+ summary="UBI8 based image containing perl and ruby interpreters" \
9
+ io.k8s.description="UBI8 based image containing perl and ruby interpreters" \
10
+ io.k8s.display-name="ubi8-perl-ruby" \
11
+ io.openshift.tags="perl ruby"
12
+
13
+ # Install perl and ruby interpreter
14
+ RUN microdnf install -y perl ruby
15
+ # ##
16
+
17
+ FROM ubi8-perl-ruby
18
+ LABEL name="XMLFormat" \
19
+ version="0.2-SNAPSHOT" \
9
20
description="Container image wrapping XML formater by Kitebird (http://www.kitebird.com/software/xmlformat/)" \
10
21
summary="Container image wrapping XML formater by Kitebird (http://www.kitebird.com/software/xmlformat/)" \
11
22
io.k8s.description="Container image wrapping XML formater by Kitebird (http://www.kitebird.com/software/xmlformat/)" \
12
23
io.k8s.display-name="XMLFormat" \
13
24
io.openshift.tags="xml format perl"
14
25
15
- # Install perl interpreter
16
- RUN microdnf install -y perl
17
-
18
- # ##
19
-
20
- FROM perl
21
-
22
26
# Docker arguments to facilitate image extension
23
- ARG SCRIPTS_DIR="/xmlformat"
24
- ARG EXTRA_ARGS="-i"
25
- ARG CFG_FILE="${SCRIPTS_DIR}/xmlformat.cfg"
27
+ ARG SCRIPTS_DIR="/bin"
28
+ ARG EXTRA_ARGS=""
29
+ ARG CFG_FILE="${SCRIPTS_DIR}/xmlformat.conf"
30
+ ARG SCRIPT_LANG="pl"
26
31
27
32
# Environment to be used by the xmlformat.sh script
28
33
ENV PATH=${SCRIPTS_DIR}:$PATH \
29
- XMLFORMAT_CFG_FILE =${CFG_FILE } \
30
- XMLFORMAT_SCRIPTS_DIR =${SCRIPTS_DIR } \
34
+ XMLFORMAT_LANG =${SCRIPT_LANG } \
35
+ XMLFORMAT_CONF =${CFG_FILE } \
31
36
XMLFORMAT_EXTRA_ARGS=${EXTRA_ARGS}
32
37
33
38
# Copy the root scripts to the scripts folder
34
- ADD scripts ${SCRIPTS_DIR}
39
+ ADD bin ${SCRIPTS_DIR}
35
40
36
41
# Make scripts executable by root group, just in case
37
42
RUN chgrp -R 0 ${SCRIPTS_DIR} && \
38
43
chmod -R g=u ${SCRIPTS_DIR}
39
44
40
- ENTRYPOINT [ "xmlformat.sh" ]
45
+ ENTRYPOINT [ "xmlformat.sh" ]
0 commit comments