From dfa7565774256804dee1228c4326371b62ebeebf Mon Sep 17 00:00:00 2001 From: Malachi Soord Date: Fri, 28 May 2021 16:42:55 +0200 Subject: [PATCH] feat: add Python 3.8 and 3.9 Docker images --- docker/Dockerfile.python-3.8 | 35 +++++++++++++++++++++++++++++++++++ docker/Dockerfile.python-3.9 | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 docker/Dockerfile.python-3.8 create mode 100644 docker/Dockerfile.python-3.9 diff --git a/docker/Dockerfile.python-3.8 b/docker/Dockerfile.python-3.8 new file mode 100644 index 0000000000..5a8247c904 --- /dev/null +++ b/docker/Dockerfile.python-3.8 @@ -0,0 +1,35 @@ +FROM python:3.8-slim + +MAINTAINER Snyk Ltd + +RUN mkdir /home/node +WORKDIR /home/node + +# Install Python utilities, node, Snyk CLI +RUN pip install pip pipenv virtualenv -U && \ + apt-get update && \ + apt-get install -y build-essential curl git && \ + curl -sL https://deb.nodesource.com/setup_14.x | bash - && \ + apt-get install -y nodejs jq && \ + npm install --global snyk snyk-to-html && \ + apt-get autoremove -y && \ + apt-get clean && \ + chmod -R a+wrx /home/node + +ENV HOME /home/node + +# The path at which the project is mounted (-v runtime arg) +ENV PROJECT_PATH /project + +COPY docker-python-entrypoint.sh . +COPY docker-entrypoint.sh . +COPY snyk_report.css . + +ENV SNYK_INTEGRATION_NAME DOCKER_SNYK_CLI +ENV SNYK_INTEGRATION_VERSION python-3.8 + +ENTRYPOINT ["./docker-python-entrypoint.sh"] + +# Default command is `snyk test` +# Override with `docker run ... snyk/snyk-cli ` +CMD ["test"] diff --git a/docker/Dockerfile.python-3.9 b/docker/Dockerfile.python-3.9 new file mode 100644 index 0000000000..dcbac46828 --- /dev/null +++ b/docker/Dockerfile.python-3.9 @@ -0,0 +1,35 @@ +FROM python:3.9-slim + +MAINTAINER Snyk Ltd + +RUN mkdir /home/node +WORKDIR /home/node + +# Install Python utilities, node, Snyk CLI +RUN pip install pip pipenv virtualenv -U && \ + apt-get update && \ + apt-get install -y build-essential curl git && \ + curl -sL https://deb.nodesource.com/setup_14.x | bash - && \ + apt-get install -y nodejs jq && \ + npm install --global snyk snyk-to-html && \ + apt-get autoremove -y && \ + apt-get clean && \ + chmod -R a+wrx /home/node + +ENV HOME /home/node + +# The path at which the project is mounted (-v runtime arg) +ENV PROJECT_PATH /project + +COPY docker-python-entrypoint.sh . +COPY docker-entrypoint.sh . +COPY snyk_report.css . + +ENV SNYK_INTEGRATION_NAME DOCKER_SNYK_CLI +ENV SNYK_INTEGRATION_VERSION python-3.9 + +ENTRYPOINT ["./docker-python-entrypoint.sh"] + +# Default command is `snyk test` +# Override with `docker run ... snyk/snyk-cli ` +CMD ["test"]