From e209bdda01c308fd1186a35bae8c92008c80869f Mon Sep 17 00:00:00 2001 From: Nicole O'Connor Date: Mon, 27 Feb 2023 17:07:29 -0800 Subject: [PATCH] dev/prodpush scripts --- libexec/push-prod-container.sh | 10 ++++++++++ libexec/start-test-container.sh | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 libexec/push-prod-container.sh create mode 100644 libexec/start-test-container.sh diff --git a/libexec/push-prod-container.sh b/libexec/push-prod-container.sh new file mode 100644 index 0000000..480892b --- /dev/null +++ b/libexec/push-prod-container.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +docker build -t vcs.otl-hga.net/nicole/seagull-game --target app . +docker push vcs.otl-hga.net/nicole/seagull-game +echo "settling dust ..." +sleep 2 + +aws ecs update-service \ + --cluster "arn:aws:ecs:us-west-2:850912941082:cluster/SeagullProd" \ + --service seagull-fargate-svc --force-new-deployment \ No newline at end of file diff --git a/libexec/start-test-container.sh b/libexec/start-test-container.sh new file mode 100644 index 0000000..3a733bd --- /dev/null +++ b/libexec/start-test-container.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +docker build -t localhost/nicole/seagull-game --target dev . +echo "build complete. starting container ..." +docker run --rm -p 80:80 localhost/nicole/seagull-game \ No newline at end of file