chanezon / azure-linux

Documentation and examples for how to leverage various linux technologies with Azure
Apache License 2.0
64 stars 15 forks source link

Add support to use existing data disks #13

Open carmstrong opened 9 years ago

carmstrong commented 9 years ago

I created https://deis.blob.core.windows.net/releases/deis-v1_1_1.vhd which is a data disk mounted as /var/lib/docker on a CoreOS host that has Deis v1.1.1 images pre-cached in the Docker graph.

If the azure-coreos-cluster script has a flag for, say, --data-disk-url, we could attach this disk on boot instead of creating a blank data disk. If we drop format-ephemeral.service from deis-cloud-init-with-disk.yml (but still mount it with var-lib-docker.mount), new machines coming up should already have Deis v1.1.1 cached locally and wouldn't need to pull it from DockerHub. This should significantly speed up Deis deployments on Azure.

carmstrong commented 9 years ago

I modified the AWS provision script in Deis to use our shared cloud-config file but dynamically add the units to format and mount the /var/lib/docker volume: https://github.com/deis/deis/pull/2803

You should be able to steal most of that and do this pretty easily.