Skip to content

Commit

Permalink
Remove dependency on WaitForIt (#4260)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Dumas <simon.dumas@epfl.ch>
  • Loading branch information
imsdu and Simon Dumas authored Sep 6, 2023
1 parent 9c09308 commit df7f728
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 30 deletions.
3 changes: 1 addition & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -970,8 +970,7 @@ lazy val servicePackaging = {
import com.typesafe.sbt.packager.docker.{DockerChmodType, DockerVersion}
import com.typesafe.sbt.packager.universal.UniversalPlugin.autoImport.Universal
Seq(
Universal / mappings += (WaitForIt.download(target.value) -> "bin/wait-for-it.sh"),
// docker publishing settings
// Docker publishing settings
Docker / maintainer := "Nexus Team <noreply@epfl.ch>",
Docker / version := {
if (isSnapshot.value) "latest"
Expand Down
16 changes: 0 additions & 16 deletions project/WaitForIt.scala

This file was deleted.

28 changes: 16 additions & 12 deletions tests/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ version: "3.3"
services:
delta:
depends_on:
- keycloak
- elasticsearch
- blazegraph
- postgres
- storage-service
- minio
keycloak:
condition: service_started
elasticsearch:
condition: service_healthy
blazegraph:
condition: service_started
postgres:
condition: service_started
storage-service:
condition: service_started
minio:
condition: service_started
environment:
DELTA_PLUGINS: "/opt/docker/plugins/"
DELTA_EXTERNAL_CONF: "/config/delta-postgres.conf"
Expand All @@ -18,8 +24,6 @@ services:
- '-c'
- |
ln -s /opt/docker/plugins/disabled/project-deletion.jar /opt/docker/plugins/project-deletion.jar &&
/opt/docker/bin/wait-for-it.sh -s -t 0 postgres:5432 -- &&
/opt/docker/bin/wait-for-it.sh -s -t 0 elasticsearch:9200 -- &&
/opt/docker/bin/delta-app -Xmx4G
ports:
- 8080:8080
Expand Down Expand Up @@ -83,10 +87,10 @@ services:
ingest.geoip.downloader.enabled: "false"
ELASTIC_PASSWORD: "password"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9200/_cluster/health" ]
interval: 30s
timeout: 20s
retries: 3
test: [ "CMD", "curl", "-f", "http://elastic:password@localhost:9200/" ]
interval: 1s
timeout: 2s
retries: 60
ports:
- 9200:9200
deploy:
Expand Down

0 comments on commit df7f728

Please sign in to comment.