Skip to content

Commit

Permalink
Add persistent volume for mysql
Browse files Browse the repository at this point in the history
The ctfe_init container uses a persistent volume to store the tree head
ID among other things from previous runs. However, the mysql container
is not guaranteed to reuse the same data directory when it is destroyed
and recreated, so it may come up empty. When this happens, but the CT
log is configured for an existing tree, then signing objects will fail
with a Not Found error. This change adds a persistent volume to the
docker-compose file for mysql so that the database can live on and be
consistent with the CT log's configuration.
  • Loading branch information
cmurphy committed Feb 6, 2024
1 parent bc4d999 commit 321e885
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ services:
timeout: 3s
retries: 3
start_period: 10s
volumes:
- mysql:/var/lib/mysql
trillian-log-server:
image: gcr.io/trillian-opensource-ci/log_server
command: [
Expand Down Expand Up @@ -141,3 +143,4 @@ services:
- mysql
volumes:
ctfeConfig: {}
mysql: {}

0 comments on commit 321e885

Please sign in to comment.