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: dockerize app with hyperchains configurable at runtime #189

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

sanekmelnikov
Copy link
Collaborator

tl;dr
This PR introduces a Docker image to run and configure dapp-portal without the need to pull the entire repository

Changes:

  1. Added Dockerfile
  2. Added docker job to release workflow to push images to Docker Hub
  3. Added hyperchainsConfig to RuntimeConfig so that Docker can be configured at runtime

config.js can be mounted to an image during runtime to configure any chains:
docker run -p 3000:3000 -v /path/to/config.js:/usr/src/app/dist/config.js dapp-portal

In the next iteration, we can consider adding each runtime config key as an individual ENV variable and add entrypoint.sh to create config.js before serving dist, thus hiding this part from the user.

@sanekmelnikov sanekmelnikov changed the title Add Dockerfile, push workflow and hyperchains to runtime config feat: Add Dockerfile, push workflow and hyperchains to runtime config Aug 13, 2024
@sanekmelnikov sanekmelnikov changed the title feat: Add Dockerfile, push workflow and hyperchains to runtime config feat: dockerize app with hyperchains configurable at runtime Aug 13, 2024
@JackHamer09 JackHamer09 merged commit 485d879 into matter-labs:main Aug 14, 2024
2 of 5 checks passed
Copy link

🎉 This PR is included in version 1.25.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants