Skip to content

Commit 5e8e6c2

Browse files
authored
Merge pull request #5 from T-Systems-MMS/add_image_config_part
add image config step
2 parents 1374961 + bb4186b commit 5e8e6c2

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

Dockerfile.template

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
###################################### Image ######################################
22
ARG CENTOS_VERSION=8
3-
ARG PACKAGES
43

54
## build Image
65
FROM centos:${CENTOS_VERSION}
@@ -20,14 +19,20 @@ RUN yum update -y && \
2019
glibc && \
2120
yum clean all
2221

22+
# pip
23+
## upgrade only base packages which are installed by 'yum install python3-pip'
24+
RUN pip3 list -o | cut -d' ' -f1 | xargs -n1 pip3 install --upgrade
25+
26+
################################## Image Config ###################################
27+
ARG PACKAGES
28+
29+
WORKDIR /root
30+
2331
## custom packages to install
2432
RUN test -n "${PACKAGES}" && \
25-
yum install -y "${PACKAGES}" && \
33+
yum install -y ${PACKAGES} && \
2634
yum clean all || :
2735

28-
## pip
29-
RUN pip3 list -o | cut -d' ' -f1 | xargs -n1 pip3 install --upgrade
30-
3136
###################################### Tools ######################################
3237
# define versions
3338
ARG ANSIBLE_VERSION

README.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ vi .docker_build
1818
| ---------------- | -------- | ------- |
1919
| CENTOS_VERSION | no | 8 |
2020

21-
### Packages
21+
### Image Config
2222

2323
Further packages to install can be specified
2424

0 commit comments

Comments
 (0)