diff --git a/pshtt/Dockerfile b/pshtt/Dockerfile index 26a44b7..4e0eba0 100755 --- a/pshtt/Dockerfile +++ b/pshtt/Dockerfile @@ -1,8 +1,11 @@ -FROM lambci/lambda:build-python3.7 -MAINTAINER Shane Frasier +FROM public.ecr.aws/lambda/python:3.7 +MAINTAINER Shane Frasier -# We need wget to download the public suffix list -RUN yum -q -y install wget +# We need to install some basic packages so that the Docker container +# can run the build_pshtt.sh script. +RUN yum -q -y install \ + wget \ + zip COPY build_pshtt.sh . diff --git a/pshtt/build_pshtt.sh b/pshtt/build_pshtt.sh index 7818815..9d0f50a 100755 --- a/pshtt/build_pshtt.sh +++ b/pshtt/build_pshtt.sh @@ -8,7 +8,7 @@ set -o pipefail # Set up the Python virtual environment ### VENV_DIR=/venv -python -m venv $VENV_DIR +python3 -m venv $VENV_DIR # Note that we have to turn off nounset before running activate, since # otherwise we can get an error that states "/venv/bin/activate: line # 6: _OLD_VIRTUAL_PATH: unbound variable". See @@ -25,19 +25,19 @@ set -o nounset ### # Update pip, setuptools, and wheel ### -pip install --upgrade pip setuptools wheel +pip3 install --upgrade pip setuptools wheel ## # Install pshtt ## -pip install --upgrade pshtt==0.6.10 +pip3 install --upgrade pshtt==0.6.10 ### # Install domain-scan ### [ -d domain-scan ] || mkdir domain-scan wget -q -O - https://api.github.com/repos/cisagov/domain-scan/tarball | tar xz --strip-components=1 -C domain-scan -pip install --upgrade -r domain-scan/lambda/requirements-lambda.txt +pip3 install --upgrade -r domain-scan/lambda/requirements-lambda.txt ### # Leave the Python virtual environment diff --git a/sslyze/Dockerfile b/sslyze/Dockerfile index 3a1cf1f..20063a3 100755 --- a/sslyze/Dockerfile +++ b/sslyze/Dockerfile @@ -1,8 +1,11 @@ -FROM lambci/lambda:build-python3.7 -MAINTAINER Shane Frasier +FROM public.ecr.aws/lambda/python:3.7 +MAINTAINER Shane Frasier -# We need wget to download the public suffix list -RUN yum -q -y install wget +# We need to install some basic packages so that the Docker container +# can run the build_sslyze.sh script. +RUN yum -q -y install \ + wget \ + zip COPY build_sslyze.sh . diff --git a/sslyze/build_sslyze.sh b/sslyze/build_sslyze.sh index c12fd0b..0f06ae3 100755 --- a/sslyze/build_sslyze.sh +++ b/sslyze/build_sslyze.sh @@ -8,7 +8,7 @@ set -o pipefail # Set up the Python virtual environment ### VENV_DIR=/venv -python -m venv $VENV_DIR +python3 -m venv $VENV_DIR # Note that we have to turn off nounset before running activate, since # otherwise we can get an error that states "/venv/bin/activate: line # 6: _OLD_VIRTUAL_PATH: unbound variable". See @@ -25,19 +25,19 @@ set -o nounset ### # Update pip, setuptools, and wheel ### -pip install --upgrade pip setuptools wheel +pip3 install --upgrade pip setuptools wheel ### # Install sslyze ### -pip install --upgrade sslyze==2.1.4 +pip3 install --upgrade sslyze==2.1.4 ### # Install domain-scan ### [ -d domain-scan ] || mkdir domain-scan wget -q -O - https://api.github.com/repos/cisagov/domain-scan/tarball | tar xz --strip-components=1 -C domain-scan -pip install --upgrade -r domain-scan/lambda/requirements-lambda.txt +pip3 install --upgrade -r domain-scan/lambda/requirements-lambda.txt ### # Leave the Python virtual environment diff --git a/trustymail/Dockerfile b/trustymail/Dockerfile index 529ffcd..a79234f 100755 --- a/trustymail/Dockerfile +++ b/trustymail/Dockerfile @@ -1,8 +1,11 @@ -FROM lambci/lambda:build-python3.7 -MAINTAINER Shane Frasier +FROM public.ecr.aws/lambda/python:3.7 +MAINTAINER Shane Frasier -# We need wget to download the public suffix list -RUN yum -q -y install wget +# We need to install some basic packages so that the Docker container +# can run the build_trustymail.sh script. +RUN yum -q -y install \ + wget \ + zip COPY build_trustymail.sh . diff --git a/trustymail/build_trustymail.sh b/trustymail/build_trustymail.sh index 8142a27..743df80 100755 --- a/trustymail/build_trustymail.sh +++ b/trustymail/build_trustymail.sh @@ -8,7 +8,7 @@ set -o pipefail # Set up the Python virtual environment ### VENV_DIR=/venv -python -m venv $VENV_DIR +python3 -m venv $VENV_DIR # Note that we have to turn off nounset before running activate, since # otherwise we can get an error that states "/venv/bin/activate: line # 6: _OLD_VIRTUAL_PATH: unbound variable". See @@ -25,19 +25,19 @@ set -o nounset ### # Update pip, setuptools, and wheel ### -pip install --upgrade pip setuptools wheel +pip3 install --upgrade pip setuptools wheel ## # Install trustymail ## -pip install --upgrade trustymail==0.8.1 +pip3 install --upgrade trustymail==0.8.1 ### # Install domain-scan ### [ -d domain-scan ] || mkdir domain-scan wget -q -O - https://api.github.com/repos/cisagov/domain-scan/tarball | tar xz --strip-components=1 -C domain-scan -pip install --upgrade -r domain-scan/lambda/requirements-lambda.txt +pip3 install --upgrade -r domain-scan/lambda/requirements-lambda.txt ### # Leave the Python virtual environment