Skip to content

Add a DevContainer setup to GPU-EVM#45

Draft
IliaMManolov wants to merge 3 commits intomainfrom
devcontainer_setup
Draft

Add a DevContainer setup to GPU-EVM#45
IliaMManolov wants to merge 3 commits intomainfrom
devcontainer_setup

Conversation

@IliaMManolov
Copy link
Collaborator

Almost works, I am hitting that annoying "can't find boost/asio.hpp" bug again.

Benefits:

  • Unified environment for working on and building GPU-EVM, shouldn't ever have a "works on my machine" funny business.
  • Can share Dockerfile with CI/CD for even less "works on my machine"ness
  • Can painlessly update CUDA (huge)
  • Can somewhat easily update Ubuntu

How to run:

  1. Checkout the devcontainer_setup branch
  2. Install the Nvidia Container toolkit on your host machine
  3. Install the DevContainers extension in VSCode/Cursor
  4. Open the project in VSCode/Cursor -> Open Command Palette (Cmd+Shift+P / F1) -> Dev Containers: Reopen in Container
  5. Wait for it to set up, you should be able to open a plain Bash terminal
  6. Build using the standard Command Palette -> CMake Build

TODO:

  • Fix the Boost asio include path issue
  • Alternative shells (or at least fish) seem to be broken because Runtime path is not available. I have an idea of how to fix it. Would make developing inside the container not suck as default bash is a bit too old-school for me.
  • Need to add cargo to make the rust extension happy
  • Need to pass git credentials inside. Currently if you make changes you need to exit the container to commit them which sucks.
  • ???

@IliaMManolov
Copy link
Collaborator Author

Additional TODO: Remove the setup shell script, it's not used

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.

1 participant