Skip to content

Commit 2db83e9

Browse files
committed
fix(docker): missing curl installation for health check
Closes #725.
1 parent b918342 commit 2db83e9

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ ARG UID=991
4343
ARG GID=991
4444

4545
RUN apk add --no-cache \
46+
'curl>=8' \
4647
'gcompat>=0' \
4748
'tzdata>=2024' \
4849
'libxml2>=2' \

Rakefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,19 @@ task :test do
5151
Output.describe 'Listing docker containers matching html2rss-web-test filter'
5252
sh 'docker ps -a --filter name=html2rss-web-test'
5353

54+
Output.describe 'Expect health status to be healthy'
55+
5.times do
56+
health_status = `docker inspect --format='{{.State.Health.Status}}' html2rss-web-test`.strip
57+
58+
if health_status == 'healthy'
59+
puts '✅ Health status reports healthy'
60+
break
61+
else
62+
putc '.'
63+
sleep 1
64+
end
65+
end
66+
5467
Output.describe 'Generating feed from a html2rss-configs config'
5568
sh 'curl -f http://127.0.0.1:3000/dfs.de/pressemitteilungen.rss || exit 1'
5669

0 commit comments

Comments
 (0)