Initial configuration + image generation script for Micro$oft Azure. Work in progress for #3986.

This commit is contained in:
Rob Vermaas
2014-09-06 21:37:46 +02:00
parent ac03d296b9
commit 81046b9e5d
3 changed files with 138 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#! /bin/sh -e
BUCKET_NAME=${BUCKET_NAME:-nixos}
export NIX_PATH=nixpkgs=../../../..
export NIXOS_CONFIG=$(dirname $(readlink -f $0))/../../../modules/virtualisation/azure-image.nix
export TIMESTAMP=$(date +%Y%m%d%H%M)
nix-build '<nixpkgs/nixos>' \
-A config.system.build.azureImage --argstr system x86_64-linux -o azure --option extra-binary-caches http://hydra.nixos.org -j 10
azure vm image create nixos-test --location "West Europe" --md5-skip -v --os Linux azure/disk.vhd