We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87f8c17 commit 59fb437Copy full SHA for 59fb437
1 file changed
scripts/check_deployment.rb
@@ -3,14 +3,9 @@
3
output = `curl --verbose --silent http://localhost:3000/ 2>&1`
4
5
if $?.success? && output.include?('Browse the catalogue')
6
- docker_ps = `docker compose ps -a --format json > out.json`
+ docker_ps = `docker compose ps -a --format json | jq -s`
7
if $?.success?
8
- begin
9
- j = JSON.parse(File.read('out.json'))
10
- rescue => e
11
- puts "THE JSON:\n\n\n\n#{docker_ps}\n\n\n\n"
12
- raise e
13
- end
+ j = JSON.parse(docker_ps)
14
unless j.any? { |c| c['ExitCode'] == 1 }
15
exit 0
16
end
0 commit comments