From efb937114542cd72e4654456d65a3a768216095d Mon Sep 17 00:00:00 2001 From: Alexejhero <32238504+Alexejhero@users.noreply.github.com> Date: Mon, 10 Jun 2024 04:25:37 +0200 Subject: [PATCH] add scripts to repo --- scripts/access_db.sh | 2 ++ scripts/attach_ebs.sh | 3 +++ scripts/run_ebs.sh | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 scripts/access_db.sh create mode 100644 scripts/attach_ebs.sh create mode 100644 scripts/run_ebs.sh diff --git a/scripts/access_db.sh b/scripts/access_db.sh new file mode 100644 index 0000000..5895127 --- /dev/null +++ b/scripts/access_db.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +sudo docker exec -it swarm-control-db-1 /bin/mysql diff --git a/scripts/attach_ebs.sh b/scripts/attach_ebs.sh new file mode 100644 index 0000000..ab1b405 --- /dev/null +++ b/scripts/attach_ebs.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +git pull +sudo docker compose up --build diff --git a/scripts/run_ebs.sh b/scripts/run_ebs.sh new file mode 100644 index 0000000..32826a1 --- /dev/null +++ b/scripts/run_ebs.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +git pull +sudo docker compose up -d --build +sudo docker compose logs -f -t --since 1m