lxd: use stable URL for Alpine's image

This commit is contained in:
Patryk Wychowaniec 2020-09-09 17:25:27 +02:00
parent 341eeebad6
commit 04111cb356
No known key found for this signature in database
GPG Key ID: F62547D075E09767
2 changed files with 8 additions and 6 deletions

View File

@ -7,6 +7,7 @@
import ./make-test-python.nix ({ pkgs, ...} : {
name = "lxd-nftables";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ patryk27 ];
};

View File

@ -6,15 +6,14 @@ let
#
# I've chosen to import Alpine Linux, because its image is turbo-tiny and,
# generally, sufficient for our tests.
alpine-meta = pkgs.fetchurl {
url = "https://uk.images.linuxcontainers.org/images/alpine/3.11/i386/default/20200608_13:00/lxd.tar.xz";
sha256 = "1hkvaj3rr333zmx1759njy435lps33gl4ks8zfm7m4nqvipm26a0";
url = "https://tarballs.nixos.org/alpine/3.12/lxd.tar.xz";
sha256 = "sha256-1tcKaO9lOkvqfmG/7FMbfAEToAuFy2YMewS8ysBKuLA=";
};
alpine-rootfs = pkgs.fetchurl {
url = "https://uk.images.linuxcontainers.org/images/alpine/3.11/i386/default/20200608_13:00/rootfs.tar.xz";
sha256 = "1v82zdra4j5xwsff09qlp7h5vbsg54s0j7rdg4rynichfid3r347";
url = "https://tarballs.nixos.org/alpine/3.12/rootfs.tar.xz";
sha256 = "sha256-Tba9sSoaiMtQLY45u7p5DMqXTSDgs/763L/SQp0bkCA=";
};
lxd-config = pkgs.writeText "config.yaml" ''
@ -44,8 +43,10 @@ let
type: disk
'';
in {
name = "lxd";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ patryk27 ];
};
@ -53,7 +54,7 @@ in {
machine = { lib, ... }: {
virtualisation = {
# Since we're testing `limits.cpu`, we've gotta have a known number of
# cores to lay on
# cores to lean on
cores = 2;
# Ditto, for `limits.memory`