2023-10-31 22:11:45 +00:00
|
|
|
# nix-flakes-node docker image
|
|
|
|
|
2023-11-10 17:20:41 +00:00
|
|
|
Heavily based on:
|
|
|
|
- https://icewind.nl/entry/gitea-actions-nix/
|
|
|
|
|
2023-10-31 22:11:45 +00:00
|
|
|
How to build:
|
|
|
|
```
|
2023-11-10 17:20:41 +00:00
|
|
|
nix build .#runner
|
|
|
|
image=$((docker load < ./result) | sed -n '$s/^Loaded image: //p')
|
|
|
|
docker tag "$image" nix-flakes-node:latest
|
|
|
|
```
|
|
|
|
|
|
|
|
Push to forgejo docker registry:
|
|
|
|
```
|
|
|
|
docker login git.pub.solar
|
|
|
|
docker tag nix-flakes-node:latest git.pub.solar/pub-solar/nix-flakes-node:latest
|
|
|
|
docker push git.pub.solar/pub-solar/nix-flakes-node:latest
|
2023-10-31 22:11:45 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
How to test:
|
|
|
|
```
|
|
|
|
docker run -it --rm nix-flakes-node:latest bash
|
|
|
|
|
|
|
|
bash-5.2# node
|
|
|
|
|
|
|
|
Welcome to Node.js v20.5.1.
|
|
|
|
Type ".help" for more information.
|
|
|
|
>
|
|
|
|
```
|