Skip to content

Commit

Permalink
[doc] update nix usage for building docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
SyedHassanUlHaq authored and sequencer committed May 26, 2024
1 parent 2e2a75c commit 3654959
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ docker pull ghcr.io/chipsalliance/t1-$config:latest
docker pull ghcr.io/chipsalliance/t1-blastoise:latest
```

Or build the image using nix and load it into docker
```bash
nix build -L ".#t1.$config.release.docker-layers.final-image"
docker load -i ./result/image.tar
```

### Nix setup
We use Nix Flake as our primary build system. If you have not installed nix, install it following the [guide](https://nixos.org/manual/nix/stable/installation/installing-binary.html), and enable flake following the [wiki](https://nixos.wiki/wiki/Flakes#Enable_flakes). Or you can try the [installer](https://github.com/DeterminateSystems/nix-installer) provided by Determinate Systems, which enables flake by default.

Expand Down

0 comments on commit 3654959

Please sign in to comment.