Add inabox-docker framework for 'docker-compose up' local deploys #39
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
Optimism, Arbitrum, and many other rollup frameworks use docker-compose to configure and run end-to-end tests and local deploys in a standardized way. In order to reliably integrate with these tests, it is necessary to adapt the inabox environment setup into a form of a single docker-compose.yaml file.
Doing this requires considerable changes to the inabox testing environment, which are complicated by the fact that inabox currently only supports a local environment that is based on OS-processes, rather than docker containers. To minimize complexity, I copied inabox/ into a separate directory, inabox-docker/, and made changes there to exclusively target docker-compose support.
There are some changes outside of inabox-docker/ which I thought necessary, but I am not very attached to and would be willing to throw them out if it would speed up review.
How do I run inabox-docker?
inabox-docker can be run using the following commands:
Some notes about this:
make config
step builds the config.yml into a env vars for the docker-compose.yaml. I kept this a separate step in case you want to make changes to this file between calls tomake new-anvil
andmake config
.Still TODO
docker-compose up
.Checks