From 0aa2be347348b358aa690df47f19bbeb8cbdaf54 Mon Sep 17 00:00:00 2001 From: Jack Wills <32690432+mrjackwills@users.noreply.github.com> Date: Sun, 6 Oct 2024 15:15:05 +0000 Subject: [PATCH] feat: stderr logs stderr output is added to logs, merges #49, also add stderr output to Dockerfile.unhealthy --- docker/Dockerfile.unhealthy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile.unhealthy b/docker/Dockerfile.unhealthy index 34835d0..e0021a9 100644 --- a/docker/Dockerfile.unhealthy +++ b/docker/Dockerfile.unhealthy @@ -12,6 +12,6 @@ HEALTHCHECK --interval=5s --timeout=3s --retries=3 \ CMD [ ! -f /tmp/healthy ] || exit 1 # Start a basic loop that keeps the container running -CMD ["sh", "-c", "while :; do echo 'Container is running but will be unhealthy'; sleep 30; done"] +CMD ["sh", "-c", "while :; do >&2 echo 'Container is running but will be unhealthy (also printing to stderr)'; sleep 30; done"] -# docker build -t unhealthy-container . -f Dockerfile.unhealthy; docker run -d --name unhealthy unhealthy-container \ No newline at end of file +# docker build -t unhealthy-container . -f Dockerfile.unhealthy; docker run -d --name unhealthy unhealthy-container \ No newline at end of file