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

node: devcontainer support #4032

Merged

Conversation

evan-gray
Copy link
Contributor

@evan-gray evan-gray commented Jul 23, 2024

This PR adds a devcontainer.json to aid in the development of node / guardian code. While development is currently possible in Linux (including WSL on Windows), providing this container adds an option for non-WSL Windows and ARM (M-series) Mac users which only requires Docker and VS Code. It also shares the same dockerfile used in CI for added assurance of compatibility. Relevant to #4031. Please note, this dockerfile explicitly specifies amd64, which means it will run via qemu or rosetta (depending on your Docker settings) - as far as I understand, the cosmwasm dependency (and possibly others) requires this and there will be a slight performance hit, but it is useable.

Copy link
Collaborator

@SEJeff SEJeff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multistage builds ftw

@evan-gray evan-gray force-pushed the node-devcontainer branch from 4aa7d79 to f7dcb56 Compare July 24, 2024 11:50
Copy link
Contributor

@kcsongor kcsongor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neat, I downloaded vs code and and opened the project using the devcontainer, and it seems to have worked 👍 (with orbstack)

@evan-gray evan-gray merged commit 81d1db5 into wormhole-foundation:main Jul 24, 2024
24 checks passed
@evan-gray evan-gray deleted the node-devcontainer branch July 24, 2024 15:00
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.

4 participants