Skip to content

Commit

Permalink
Update security patch for python
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentLesle committed Apr 8, 2021
1 parent 5e65914 commit dcb56ff
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .pip_to_patch_latest
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
boto3
botocore
certifi
chardet
checkov
colorama
cryptography
distro-info
dnspython
docutils
gitdb
GitPython
httplib2
idna
Jinja2
junit-xml
lark-parser
packaging
PyYAML
setuptools
smmap
tabulate
tqdm
urllib3
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ ENV SSH_PASSWD=${SSH_PASSWD} \
LC_ALL=en_US.UTF-8 \
DEBIAN_FRONTEND=noninteractive

WORKDIR /tf/rover
COPY ./.pip_to_patch_latest .

# installation tools
RUN apt-get update && \
apt-get install -y \
Expand Down Expand Up @@ -162,6 +165,11 @@ RUN apt-get update && \
fonts-powerline \
jq=${versionJq}-1ubuntu0.20.04.1 && \
#
# Patch
# to regenerate the list - pip3 list --outdated --format=columns |tail -n +3|cut -d" " -f1 > pip_to_patch_latest
#
for i in $(cat ./.pip_to_patch_latest); do pip3 install $i --upgrade; done && \
#
# Clean-up
#
apt-get remove -y \
Expand Down Expand Up @@ -198,7 +206,7 @@ RUN apt-get update && \
echo "export HISTCONTROL=ignoredups:erasedups" >> "/home/${USERNAME}/.bashrc" && \
echo "PROMPT_COMMAND=\"${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r\"" >> "/home/${USERNAME}/.bashrc"

WORKDIR /tf/rover

COPY ./scripts/rover.sh .
COPY ./scripts/tfstate_azurerm.sh .
COPY ./scripts/functions.sh .
Expand Down

0 comments on commit dcb56ff

Please sign in to comment.