From 026da2b162b150431d0a938a96c163e2a90e0804 Mon Sep 17 00:00:00 2001 From: Rudolf Date: Sun, 7 Apr 2024 19:18:18 +0200 Subject: [PATCH] =?UTF-8?q?skripty=20na=20logov=C3=A1n=C3=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci/templates/exec.sh | 9 +++++++++ ci/templates/logs.sh | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 ci/templates/exec.sh create mode 100644 ci/templates/logs.sh diff --git a/ci/templates/exec.sh b/ci/templates/exec.sh new file mode 100644 index 0000000..c5dd47f --- /dev/null +++ b/ci/templates/exec.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +# Make Bash Great Again +set -o errexit # exit when a command fails. +set -o nounset # exit when using undeclared variables +set -o pipefail # catch non-zero exit code in pipes +# set -o xtrace # uncomment for bug hunting + +docker exec -it pywb-test-pywb-1 bash \ No newline at end of file diff --git a/ci/templates/logs.sh b/ci/templates/logs.sh new file mode 100644 index 0000000..28382ec --- /dev/null +++ b/ci/templates/logs.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +# Make Bash Great Again +set -o errexit # exit when a command fails. +set -o nounset # exit when using undeclared variables +set -o pipefail # catch non-zero exit code in pipes +# set -o xtrace # uncomment for bug hunting + +docker-compose -f {{ pywb_dir }}/docker-compose-{{ env }}.yaml -p pywb-{{ env }} logs pywb -f \ No newline at end of file