Skip to content

Files

This branch is 54 commits behind carbon-language/carbon-lang:trunk.

docker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 17, 2024
Dec 17, 2024

Docker

ubuntu:22.04

Build and run image

Build

Building the base image is required.

docker build -t carbon-ubuntu2404-base ./ubuntu2404/base

Build image using git repository

docker build -t carbon-ubuntu2404 ./ubuntu2404/github

Build image using copy instruction

docker build -f ./ubuntu2404/Dockerfile -t carbon-ubuntu2404 ..

Run image

docker run carbon-ubuntu2404

Run image using specific file

docker run carbon-ubuntu2404 bazel run //explorer -- ./explorer/testdata/print/format_only.carbon

Using a mounted volume

Run from the repository root for PWD.

cd ..
docker run -w "/carbon-lang" -v "${PWD}:/carbon-lang" "carbon-ubuntu2404-base" bazel run "//explorer" -- "./explorer/testdata/print/format_only.carbon"