From 049ec0b285fbbb23cc646eaee06ff94263fe5823 Mon Sep 17 00:00:00 2001 From: Nathan LeClaire Date: Mon, 19 Dec 2016 16:27:28 -0800 Subject: [PATCH] Bumps for azure 1.13.0-rc4-beta14 Signed-off-by: Nathan LeClaire --- alpine/packages/azure/etc/init.d/azure | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/alpine/packages/azure/etc/init.d/azure b/alpine/packages/azure/etc/init.d/azure index 6aad975bf..038e2be42 100755 --- a/alpine/packages/azure/etc/init.d/azure +++ b/alpine/packages/azure/etc/init.d/azure @@ -34,8 +34,28 @@ start() einfo "Running Windows Azure Linux Agent container" - export DOCKER_FOR_IAAS_VERSION="azure-v1.13.0-rc3-beta13" - export DOCKER_FOR_IAAS_VERSION_DIGEST="b58fe8af38fd05d58fecf978451e74cbda303a5a04607202e428718c71c14065" + export DOCKER_FOR_IAAS_VERSION="azure-v1.13.0-rc4-beta14" + export DOCKER_FOR_IAAS_VERSION_DIGEST="85c28edf90026ae6713c435fa40c36a1710e963a6478a7cdeac3da944f6c13ad" + + # "Fake" /etc/hostname setup for persistence across reboots + # + # Note the bind mount in 'docker run' below. + if [ ! -d /var/etc/ ] + then + mkdir -p /var/etc + fi + if [ ! -f /var/etc/hostname ] + then + echo "moby" >/var/etc/hostname + fi + + if [ -f /var/lib/waagent/provisioned ] + then + # During provisioning, the Azure agent usually does this, but + # on reboots, it will need to be invoked "manually". + hostname -F /var/etc/hostname + kill -HUP "$(pidof dhcpcd)" + fi docker run -d \ --privileged \