Rudimentary devcontainer template for the Mojo programming language
Dockerfile copied from the official Mojo github repository
VSCode will prompt you to open the dev container when you open the project. Do not do this yet. First you must add your Modular authentication key to devcontainer.json
. To find your authentication key:
- Log in at developer.modular.com
- Copy your authentication key. You will find it in the install instructions that should look something like
curl https://get.modular.com | sh - && \
modular auth <YOUR_AUTH_KEY>
- Set the
AUTH_KEY
environment variable indevcontainer.json
- Once you save the file, vscode should prompt you to open the devcontainer again. Now you may do so.
The first build will take several minutes. Once it is complete, verify everything works by opening VSCode's integrated terminal and running mojo hello.mojo
.