From 8f8f30cb655b1908644fa7fde78e3e24fbf22c5d 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 | 12 ++++++++++++ 2 files changed, 18 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..ddd8d4c --- /dev/null +++ b/test.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +docker build --no-cache --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