diff options
author | Rob Vermaas <rob.vermaas@gmail.com> | 2014-09-06 21:37:46 +0200 |
---|---|---|
committer | Rob Vermaas <rob.vermaas@gmail.com> | 2014-09-06 21:37:46 +0200 |
commit | 81046b9e5d20077c4a394c8d5e685ead9c7f609c (patch) | |
tree | d05e12627cd03d2b4ad4fb68d945121a986c3c8b /nixos/maintainers/scripts/azure | |
parent | ac03d296b9b261b342e95871c62593d374179204 (diff) | |
download | nixlib-81046b9e5d20077c4a394c8d5e685ead9c7f609c.tar nixlib-81046b9e5d20077c4a394c8d5e685ead9c7f609c.tar.gz nixlib-81046b9e5d20077c4a394c8d5e685ead9c7f609c.tar.bz2 nixlib-81046b9e5d20077c4a394c8d5e685ead9c7f609c.tar.lz nixlib-81046b9e5d20077c4a394c8d5e685ead9c7f609c.tar.xz nixlib-81046b9e5d20077c4a394c8d5e685ead9c7f609c.tar.zst nixlib-81046b9e5d20077c4a394c8d5e685ead9c7f609c.zip |
Initial configuration + image generation script for Micro$oft Azure. Work in progress for #3986.
Diffstat (limited to 'nixos/maintainers/scripts/azure')
-rwxr-xr-x | nixos/maintainers/scripts/azure/create-azure.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/maintainers/scripts/azure/create-azure.sh b/nixos/maintainers/scripts/azure/create-azure.sh new file mode 100755 index 000000000000..f87a88404f67 --- /dev/null +++ b/nixos/maintainers/scripts/azure/create-azure.sh @@ -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 |