-
-
Save lf-/3965e2fee0ccec77917432ce406b24df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dev/Carnap - [nix-docker] » nix-build release.nix -A docker -o docker-out | |
these derivations will be built: | |
/nix/store/vg8xggcgpsq0p2ajlskjd8p358xgdpl4-run-as-root.sh.drv | |
/nix/store/05p4hdhj5333ky03s53v2wrwswxbjjxj-docker-layer-Carnap.drv | |
/nix/store/whmlnkgyacp6hir75jnq6f67gz8n8xll-docker-layer-Carnap.drv | |
/nix/store/a4mzxjvyv2kz3ndb14yfwx7jz8a28wr5-runtime-deps.drv | |
/nix/store/g12drphybkggmdy33ah2gm6i4awfv6jk-docker-image-Carnap.tar.gz.drv | |
building '/nix/store/vg8xggcgpsq0p2ajlskjd8p358xgdpl4-run-as-root.sh.drv'... | |
building '/nix/store/05p4hdhj5333ky03s53v2wrwswxbjjxj-docker-layer-Carnap.drv'... | |
Formatting '/nix/store/4x9j05z83vglabmp1jr7jsv8d8q4i1ph-docker-layer-Carnap/disk-image.qcow2', fmt=qcow2 size=107 | |
3741824 cluster_size=65536 lazy_refcounts=off refcount_bits=16 | |
cSeaBIOS (version rel-1.12.0-59-gc9ba5276e321-prebuilt.qemu.org) | |
iPXE (http://ipxe.org) 00:03.0 CA00 PCI2.10 PnP PMM+1FF90550+1FEF0550 CA00 | |
Booting from ROM... | |
Probing EDD (edd=off to disable)... ocloading kernel modules... | |
mounting Nix store... | |
mounting host's temporary directory... | |
starting stage 2 (/nix/store/kbz6zy4v5132lcvmspr3lccn9mzl4h5p-vm-run-stage2) | |
mke2fs 1.45.5 (07-Jan-2020) | |
Discarding device blocks: done | |
Creating filesystem with 262144 4k blocks and 65536 inodes | |
Filesystem UUID: 58bba41a-bab2-42e6-ae82-9676feafddcf | |
Superblock backups stored on blocks: | |
32768, 98304, 163840, 229376 | |
Allocating group tables: done | |
Writing inode tables: done | |
Writing superblocks and filesystem accounting information: done | |
Executing pre-mount steps... | |
Adding contents... | |
Adding /nix/store/32438k3jcsnrpwabjj0iy3qx4l2pz39w-Carnap-Server-0.0.0... | |
Executing post-mount steps... | |
runAsRoot:: | |
Packing layer... | |
Computing checksum... | |
Finished building layer 'Carnap' | |
[ 9.589412] reboot: Power down | |
building '/nix/store/whmlnkgyacp6hir75jnq6f67gz8n8xll-docker-layer-Carnap.drv'... | |
building '/nix/store/a4mzxjvyv2kz3ndb14yfwx7jz8a28wr5-runtime-deps.drv'... | |
building '/nix/store/g12drphybkggmdy33ah2gm6i4awfv6jk-docker-image-Carnap.tar.gz.drv'... | |
Adding layer... | |
tar: Removing leading `/' from member names | |
tar: temp/layer.tar: Cannot write: No space left on device | |
tar: Error is not recoverable: exiting now | |
builder for '/nix/store/g12drphybkggmdy33ah2gm6i4awfv6jk-docker-image-Carnap.tar.gz.drv' failed with exit code 2 | |
note: build failure may have been caused by lack of free disk space | |
error: build of '/nix/store/g12drphybkggmdy33ah2gm6i4awfv6jk-docker-image-Carnap.tar.gz.drv' failed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{}: | |
let inherit (import ./default.nix {}) client server nixpkgs; | |
inherit (nixpkgs.dockerTools) buildImage; | |
in { | |
inherit server; | |
docker = buildImage { | |
name = "Carnap"; | |
tag = "latest"; | |
# no base image, make a minimized image | |
contents = [ server ]; | |
runAsRoot = '' | |
#!${nixpkgs.runtimeShell} | |
echo runAsRoot:: | |
mkdir -p /data | |
cp -r ${server.out}/share/* /data | |
''; | |
config = { | |
Cmd = [ "/bin/Carnap-Server" ]; | |
WorkingDir = "/data"; | |
Volumes = { | |
"/data" = {}; | |
}; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment