Uniswap / universal-router

Uniswap's Universal Router for NFT and ERC20 swapping
GNU General Public License v3.0
396 stars 204 forks source link

Add VS Code Devcontainer support #303

Closed restlessronin closed 11 months ago

restlessronin commented 1 year ago

@hensha256 As someone who routinely switches between languages, toolchains and stacks, I lean heavily towards doing development in containerized environments, particularly VS Code devcontainers.

In this PR, I have added VS Code devcontainer support for universal router. I have created a multi-stage dockerfile that copies the foundry executables into a node18 image. The resulting image can be used to run both hardhat and foundry.

The base image is a custom foundry multi-arch image (restlessronin/foundry) that is based on debian (VS code doesn't work well with alpine images). I have submitted the dockerfile for this custom image to the foundry project (https://github.com/foundry-rs/foundry/pull/4992), and I am hopeful that it will be incorporated into the official image.