From b7639ad698370785f571fd883c908c86f156893c Mon Sep 17 00:00:00 2001 From: Gil Desmarais Date: Sun, 16 Mar 2025 07:40:26 +0100 Subject: [PATCH] fix(docker): missing curl installation for health check Closes #725. Signed-off-by: Gil Desmarais --- Dockerfile | 1 + Rakefile | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c6138314..77fc89cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,6 +43,7 @@ ARG UID=991 ARG GID=991 RUN apk add --no-cache \ + 'curl>=8' \ 'gcompat>=0' \ 'tzdata>=2024' \ 'libxml2>=2' \ diff --git a/Rakefile b/Rakefile index 4b86d6bd..95c56a08 100644 --- a/Rakefile +++ b/Rakefile @@ -58,7 +58,7 @@ task :test do sh 'curl -f http://127.0.0.1:3000/example.rss || exit 1' Output.describe 'Authenticated request to GET /health_check.txt' - sh 'curl -f http://username:password@127.0.0.1:3000/health_check.txt || exit 1' + sh 'docker exec html2rss-web-test curl -f http://username:password@127.0.0.1:3000/health_check.txt || exit 1' Output.describe 'Print output of `html2rss help`' sh 'docker exec html2rss-web-test html2rss help' @@ -72,4 +72,6 @@ ensure sh 'docker stop html2rss-web-test' sh 'docker rm html2rss-web-test' end + + exit 1 if $ERROR_INFO end