Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Move init to deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbelvin committed Jan 16, 2020
1 parent 387e169 commit 9f25373
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
19 changes: 0 additions & 19 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,25 +122,6 @@ services:
- server.key
- server.crt

init:
image: gcr.io/key-transparency/init:latest
restart: "on-failure"
deploy:
restart_policy:
condition: on-failure
build:
context: .
dockerfile: ./deploy/docker/init/Dockerfile
depends_on:
- sequencer
command:
- sequencer:8080
- --
- curl
- -k
- https://sequencer:8080/v1/directories
- -d{"directory_id":"default","min_interval":"1s","max_interval":"60s"}

monitor:
depends_on:
- server
Expand Down
1 change: 1 addition & 0 deletions scripts/docker-compose_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ docker-compose build --parallel
# docker swarm init
docker stack deploy -c docker-compose.yml -c docker-compose.prod.yml kt
trap "docker stack rm kt" INT EXIT
docker run -t --network kt_attachable gcr.io/key-transparency/init:${TRAVIS_COMMIT} sequencer:8080 -- curl -k -X POST https://sequencer:8080/v1/directories -d'{"directory_id":"default","min_interval":"1s","max_interval":"60s"}'
./scripts/docker-stack-wait.sh -t 180 kt

wget -T 60 --spider --retry-connrefused --waitretry=1 http://localhost:8081/readyz
Expand Down

0 comments on commit 9f25373

Please # to comment.