From b4793d3c162561f7a4d13dc61947334eeea618d9 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Wed, 5 Feb 2025 08:10:11 +1000 Subject: [PATCH] Adds testssl.sh and mkcert to cypress stack --- test/cypress/Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/cypress/Dockerfile b/test/cypress/Dockerfile index 6de4c245..c0bc0ba8 100644 --- a/test/cypress/Dockerfile +++ b/test/cypress/Dockerfile @@ -6,6 +6,18 @@ COPY --chown=1000 ./test /test ENV FORCE_COLOR=0 ENV NO_COLOR=1 +# testssl.sh and mkcert +RUN wget "https://github.com/testssl/testssl.sh/archive/refs/tags/v3.2rc4.tar.gz" -O /tmp/testssl.tgz -q \ + && tar -xzf /tmp/testssl.tgz -C /tmp \ + && mv /tmp/testssl.sh-3.2rc4 /testssl \ + && rm /tmp/testssl.tgz \ + && apt-get update \ + && apt-get install -y bsdmainutils \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + && wget "https://github.com/FiloSottile/mkcert/releases/download/v1.4.4/mkcert-v1.4.4-linux-amd64" -O /bin/mkcert \ + && chmod +x /bin/mkcert + WORKDIR /test RUN yarn install && yarn cache clean ENTRYPOINT []