Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docker): add initialize-onchain to copy files to docker volume #8

Merged
merged 1 commit into from
Nov 14, 2024
Merged
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
14 changes: 13 additions & 1 deletion docker/sui/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ x-validator-base: &validator-base
condition: service_completed_successfully

services:
initialize-onchain:
image: alpine:latest
container_name: initialize-onchain
command: ["sh", "-c", "cp -r /source/* /data"]
volumes:
- ../../onchain:/source:ro
- onchain:/data
restart: "no"

tuky191 marked this conversation as resolved.
Show resolved Hide resolved
build-suitools:
container_name: build-suitools
restart: "no"
Expand Down Expand Up @@ -62,12 +71,14 @@ services:
- ./bin/publish_package.sh:/opt/sui/publish_package.sh:ro
- ./genesis/static/client.yaml:/opt/sui/config/client.yaml:rw
- ./genesis/static/sui.keystore:/opt/sui/config/sui.keystore:ro
- ../../onchain:/opt/sui/onchain
- onchain:/opt/sui/onchain
command: ["bash", "/opt/sui/publish_package.sh"]
restart: on-failure
depends_on:
build-suitools:
condition: service_completed_successfully
initialize-onchain:
condition: service_completed_successfully

validator1:
<<: *validator-base
Expand Down Expand Up @@ -227,6 +238,7 @@ services:
condition: service_healthy

volumes:
onchain:
genesis:
validator1-db:
validator2-db:
Expand Down
Loading