The .devcontainer utilises a Dockerfile and devcontainer.json to create a docker container within Visual Studio Code that comes prebuilt with all dependancies needed to start contributing to Hyperledger Cactus.
Detailed below are the prerequisites for Windows and Linux
- Visual Studio Code
- Docker Desktop 2.0+ (Windows 10 Pro/Enterprise) or Docker Desktop 2.3+ and the WSL 2 back-end(Wndows 10 Home)
For more guidance please see developing inside a container
- Visual Studio Code
- Follow the official install instructions for Docker CE/EE for your distribution. If you are using Docker Compose, follow the Docker Compose directions as well.
- Add your user to the docker group - sudo usermod -aG docker $USER
- Sign out and back in
For more guidance please see developing inside a container
- Install the "Remote - Containers" VSC extension
- Clone the repo
- In VSC click the two green arrows at the bottom left
- Click "Remote Containers: Open Folder In Container"
- Navigate to repo and open at a root level
You should see a pop up at the bottom right stating the container is starting. Once the container is ready you will see the repo opened, you should now be ready to start contributing to Hyperledger Cactus.
Note - The first time you initiate the container it may take a while to complete. All other loads from then should be much faster.