From c10be11f763413090f0b2dce541b644c091d90cf Mon Sep 17 00:00:00 2001 From: Niall Byrne <9848926+niall-byrne@users.noreply.github.com> Date: Thu, 16 Nov 2023 17:58:06 -0500 Subject: [PATCH] test(SCRIPT): add local test script --- .dockerignore | 7 ++++++- test.sh | 10 ++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 test.sh diff --git a/.dockerignore b/.dockerignore index 9daeafb..a608013 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,6 @@ -test +certs +*.env +.cicd-tools +.github +.vale + diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..cf37542 --- /dev/null +++ b/test.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +docker build --build-arg=provider=aws -t test . + +docker run \ + -v "$(pwd)"/certs:/etc/letsencrypt \ + -v "$(pwd)"/aws.env:/mnt/aws.env \ + -e ENV_FILE=/mnt/aws.env \ + -p 587:587 \ + test