add pip, xmltodict and pyyaml

This commit is contained in:
Wolfgang Hottgenroth 2020-12-02 19:23:15 +01:00
parent 7b7b390dd8
commit 965830fd54
2 changed files with 5 additions and 6 deletions

View File

@ -6,11 +6,10 @@ LABEL AlternativeImageName="wollud1969/docker-bash"
RUN \ RUN \
apk add --no-cache bash curl git python3 gawk sed && \ apk add --no-cache bash curl git python3 gawk sed py3-pip && \
P=`pwd` && \ ( cd /usr/bin && ln -s python3 python ) && \
cd /usr/bin && \ pip install xmltodict && \
ln -s python3 python && \ pip install pyyaml
cd $P
CMD [ "bash" ] CMD [ "bash" ]

View File

@ -4,7 +4,7 @@ This is a Docker image directly derived from the Docker image `docker`, which is
I use it regularly within Gitlab CI runners. Most recently I was wondering why a specific bash feature (variable indirection) wasn't available in a CI script. The reason was simple: the Docker `docker` image doesn't contain `bash` at all. I use it regularly within Gitlab CI runners. Most recently I was wondering why a specific bash feature (variable indirection) wasn't available in a CI script. The reason was simple: the Docker `docker` image doesn't contain `bash` at all.
This image now is derived from the Docker `docker` image and just adds the bash, sed, gawk, curl, git and python. This image now is derived from the Docker `docker` image and just adds the bash, sed, gawk, curl, git and python3, pip and the Python modules xmltodict and pyyaml.
I would say: Use it the same way as the original image, you just have the additional stuff now. I would say: Use it the same way as the original image, you just have the additional stuff now.