For those who are hampered setting up local environment for Mojo🔥, before next version with better installation experience is in place.
Related issues: #800, #822, #825, #836, #838, #850, #866
If you already have VS Code and Docker installed, you can click the badge above or here to get started. Clicking these links will cause VS Code to automatically install the Dev Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use.
docker run -it --rm carusyte/mojo bash
- Clone the repo
- Run the following command to build Docker image. Remember to replace the
MODULAR_AUTH
environment variable with yours obtained from modular.com. Preferrably the build process is more likely to succeed in a cloud VM outside network-restricted area.
export MODULAR_AUTH="<REPLACE_WITH_YOUR_UNIQUE_TOKEN>" && \
export DOCKER_BUILDKIT=1 && \
docker build --no-cache \
--secret id=modularauth,env=MODULAR_AUTH \
-t <USE_YOUR_OWN_ID>/mojo:latest \
-t <USE_YOUR_OWN_ID>/mojo:0.1 \
.