-
Notifications
You must be signed in to change notification settings - Fork 12
refactor(cli): compose image definition in a single place #151
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
refactor(cli): compose image definition in a single place #151
Conversation
🦋 Changeset detectedLatest commit: 855012a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Coverage Report for ./apps/cli
File Coverage
|
||||||||||||||||||||||||||||||||||||||
a27b565 to
f350102
Compare
b4e999f to
78b5056
Compare
f350102 to
2fc76ba
Compare
78b5056 to
d2c37a4
Compare
2fc76ba to
a6a9af4
Compare
tuler
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This use of extends is quite unorthodox. I don't think I like it.
It's a new feature, and it makes our code more maintainable, IMO. When you use |
a82afdd to
a7e55c5
Compare
39558cf to
d496299
Compare
b295744 to
48ddef2
Compare
caf7a2f to
c2a395d
Compare
|
Solved at #116 using environment variable replacement. |
This pull request includes several changes to the
@cartesi/clipackage, focusing on centralizing the definition of Docker images and refactoring the Docker Compose files to use a base configuration. The most important changes are outlined below:Refactoring and Centralization:
cartesi/sdkandcartesi/rollups-nodeimages. (.changeset/selfish-dots-perform.md)Code Updates:
DEFAULT_SDKfromconfig.jsand used it in theRuncommand to set theCARTESI_SDK_IMAGEenvironment variable. (apps/cli/src/commands/run.ts) [1] [2]Docker Compose Refactoring:
docker-compose-anvil.yamlto extend fromdocker-compose-base.yamlforsdk_imageandrollups_node_imageservices. (apps/cli/src/node/docker-compose-anvil.yaml) [1] [2]docker-compose-base.yamlwith definitions forsdk_imageandrollups_node_imageservices. (apps/cli/src/node/docker-compose-base.yaml)docker-compose-bundler.yaml,docker-compose-database.yaml,docker-compose-espresso.yaml,docker-compose-paymaster.yaml,docker-compose-validator.yaml) to extend fromdocker-compose-base.yamlfor consistency. [1] [2] [3] [4] [5]