Skip to content

Jumpstart docker image and VS Code dev container to play with Mojo🔥

License

Notifications You must be signed in to change notification settings

carusyte/mojo-play

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 \
    .

About

Jumpstart docker image and VS Code dev container to play with Mojo🔥

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published