Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.9 KB

README.md

File metadata and controls

32 lines (22 loc) · 1.9 KB

Easier to Jumpstart with Mojo🔥

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

VS Code Dev Container

Open in Dev Containers

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.

Play in a Docker Container

docker run -it --rm carusyte/mojo bash

Dockerfile to build image for Mojo SDK

  1. Clone the repo
  2. 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 \
    .