Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 30 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,22 @@ services:
- 4001:4001 # ACMEv2
- 4003:4003 # SFE
depends_on:
- bmariadb
- bproxysql
- bvitess
- bredis_1
- bredis_2
- bconsul
- bjaeger
- bpkimetal
bmariadb:
condition: service_started
bproxysql:
condition: service_started
bvitess:
condition: service_healthy
bredis_1:
condition: service_started
bredis_2:
condition: service_started
bconsul:
condition: service_started
bjaeger:
condition: service_started
bpkimetal:
condition: service_started
entrypoint: test/entrypoint.sh
working_dir: &boulder_working_dir /boulder

Expand Down Expand Up @@ -154,6 +162,20 @@ services:
# databases on startup.
KEYSPACES: boulder_sa,incidents_sa,boulder_sa_next,incidents_sa_next
NUM_SHARDS: 1,1,1,1
healthcheck:
# Make sure the service is up and the tables are created. Use `serials` because it happens
# to be last in the SQL initialization files, so if it exists the other tables do too.
# Note that the mysql command issues some queries on startup that result in this spurious
# logging from bvitess:
# You have an error in your SQL syntax; check the manual that corresponds to your MySQL
# server version for the right syntax to use near '$$ from dual limit 10001'
test: [ "CMD", "mysql", "-h", "127.0.0.1", "-P", "33577", "-D", "boulder_sa",
"-e", "SELECT 1 FROM serials"]
interval: 2s
timeout: 30s
retries: 3
start_period: 10s
start_interval: 2s
networks:
bouldernet:
aliases:
Expand Down
3 changes: 0 additions & 3 deletions test/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ configure_database_endpoints
./test/wait-for-it.sh boulder-mariadb 3306
./test/wait-for-it.sh boulder-proxysql 6033

# make sure we can reach vitess
./test/wait-for-it.sh boulder-vitess 33577

# make sure we can reach pkilint
./test/wait-for-it.sh bpkimetal 8080

Expand Down
Loading