Sign inSign up

f0ide/devcontainer-dfinity

By f0ide

•Updated over 4 years ago

A development container for programming the internet computer dfinity.

Image
0

920

f0ide/devcontainer-dfinity repository overview

⁠Motoko Development Container

This project contains the Dockerfile for the VS Code development container⁠.

⁠Install

To use this you have to create a directory .devcontainer in your project and add the following two files:

.devcontainer/devcontainer.json:

{
	"name": "dfinity",
	"build": {
		"dockerfile": "Dockerfile"
	},
	"settings": {
		"terminal.integrated.shell.linux": "/bin/bash"
	},
	"extensions": [
		"dbaeumer.vscode-eslint",
		"dfinity-foundation.vscode-motoko"
	],
	// Use 'forwardPorts' to make a list of ports inside the container available locally.
	// "forwardPorts": [],
	// Use 'postCreateCommand' to run commands after the container is created.
	// "postCreateCommand": "yarn install",
	"remoteUser": "node"
}

.devcontainer/Dockerfile:

FROM f0ide/devcontainer-dfinity

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get -y install --no-install-recommends <your-package-list-here>

# [Optional] run this to upgrade to the latest version of dfx
# RUN yes | dfx upgrade

# [Optional] Uncomment if you want to install an additional version of node using nvm
# ARG EXTRA_NODE_VERSION=10
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"

# [Optional] Uncomment if you want to install more global node modules
# RUN su node -c "npm install -g <your-package-list-here>"

⁠Usage

Install the "Remote - Containers" extension⁠.

Make sure Docker is installed⁠, then run the command > Remote-Containers: Reopen in container.

This will download the docker image and setup the development container.

After that you can open a terminal⁠ and start developing in Motoko⁠.

Tag summary

Content type

Image

Digest

Size

723.7 MB

Last updated

over 4 years ago

docker pull f0ide/devcontainer-dfinity