Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
elohanlon committed Dec 12, 2023
1 parent bc5ce72 commit 9732bff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/templates/docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
test: ["CMD-SHELL", "curl -sf http://solr:8983/solr/dcv/admin/ping?wt=json | grep -io \"OK\" || exit 1"]
start_period: 5s
interval: 2s
timeout: 20s
timeout: 5s
retries: 7
fedora:
build: ./fedora
Expand Down
4 changes: 3 additions & 1 deletion lib/tasks/dcv/docker.rake
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ namespace :dcv do
def wait_for_solr_cores_to_load
solr_id = `docker compose -f #{Rails.root.join(docker_compose_file_path)} ps -q solr`

Timeout.timeout(120, Timeout::Error, 'Timed out during solr startup check.') do
puts "env inside container is: ${`docker exec #{solr_id} env`}"

Timeout.timeout(5, Timeout::Error, 'Timed out during solr startup check.') do
loop do
sleep 0.25
status = `docker inspect --format "{{.State.Health.Status}}" #{solr_id}`.strip
Expand Down

0 comments on commit 9732bff

Please sign in to comment.