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

build: docker-compose #190

Merged
merged 5 commits into from
Jan 19, 2024
Merged

build: docker-compose #190

merged 5 commits into from
Jan 19, 2024

Conversation

pepyakin
Copy link
Contributor

@pepyakin pepyakin commented Jan 11, 2024

This commit introduces docker/docker-compose.yml. Thanks to it
you can now spin up a network with just one command:

        docker compose -f docker/docker-compose.yml --build up

That will launch the polkadot localnet, the parachain node, the shim
and the demoes: gm (based on rollkit) and the sovereign demo.

Besides that this commit adds explicit cache IDs: that seems to improve
the caching behavior when running builds from docker-compose.

Atm, parity/polkadot image isn't multi-arch and doesn't support arm64.
To properly support macOS builds I opted to build the whole thing inside
amd64. It seems it has ok performance.

Also, I wrapped the docker entrypoints in tini. This solves the problem
of propagating the SIGTERM/SIGINT when stopping the services.

Copy link
Contributor Author

pepyakin commented Jan 11, 2024

@pepyakin pepyakin force-pushed the pep-chore-improve-logging branch from 45643ae to c4dd651 Compare January 11, 2024 16:06
@pepyakin pepyakin force-pushed the pep-build-docker-compose branch 2 times, most recently from c09b8b6 to 4a9f29e Compare January 11, 2024 16:28
This behavior is useful for testing. Specifically, for simple detection of
"healthiness" of the chain just after starting up.
Makes it possible to configure a timeout from the rollup_config.toml. At the same time
increased the timeout for the sovereign demo.
Set the namespace used for the gm demo that is compatible with the current
version. Specifically, the current version requires to be the version byte
(0th index) be zero and the reserved bytes (1..5th indicies) be zero as well.
This changeset is meant to improve the logging. Basically committing whatever
logging changes that I did for debugging issues with the demo.
This commit introduces docker/docker-compose.yml. Thanks to it
you can now spin up a network with just one command:

	docker compose -f docker/docker-compose.yml --build up

That will launch the polkadot localnet, the parachain node, the shim
and the demoes: gm (based on rollkit) and the sovereign demo.

Besides that this commit adds explicit cache IDs: that seems to improve
the caching behavior when running builds from docker-compose.

Atm, parity/polkadot image isn't multi-arch and doesn't support arm64.
To properly support macOS builds I opted to build the whole thing inside
amd64. It seems it has ok performance.

Also, I wrapped the docker entrypoints in tini. This solves the problem
of propagating the SIGTERM/SIGINT when stopping the services.
@pepyakin pepyakin force-pushed the pep-chore-improve-logging branch from c4dd651 to 7135f42 Compare January 11, 2024 16:43
@pepyakin pepyakin force-pushed the pep-build-docker-compose branch from 4a9f29e to ce360ee Compare January 11, 2024 16:43
@rphmeier rphmeier force-pushed the pep-chore-improve-logging branch from 7135f42 to dda2dda Compare January 12, 2024 22:29
Base automatically changed from pep-chore-improve-logging to main January 12, 2024 22:31
@rphmeier rphmeier merged commit bb1bb69 into main Jan 19, 2024
5 checks passed
@rphmeier rphmeier deleted the pep-build-docker-compose branch January 19, 2024 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants