Pre install docker into base image
* Cache MKE images
Related-Prod: PRODX-3456
Change-Id: Iff159433685d3e3895f36cb4000b32b88b71a389
diff --git a/mosk-images/template.json b/mosk-images/template.json
index de3953c..81f51b9 100644
--- a/mosk-images/template.json
+++ b/mosk-images/template.json
@@ -2,22 +2,30 @@
"variables": {
"user": "root",
"password": "r00tme",
- "disk_size": "2500M",
+ "disk_size": "7000M",
"images_cache": "{{ env `PACKER_IMAGES_CACHE` }}",
"image_base_url": "{{ env `IMAGE_BASE_URL` }}",
"image_md5_url": "{{ env `IMAGE_MD5_URL` }}",
"vm_name": "{{ env `VM_NAME` }}",
- "kernel_version": "{{ env `KERNEL_VERSION` }}"
+ "kernel_version": "{{ env `KERNEL_VERSION` }}",
+ "docker_ee_release": "{{ env `DOCKER_EE_RELEASE` }}",
+ "docker_ee_url": "{{ env `DOCKER_EE_URL` }}",
+ "docker_ucp_image": "{{ env `DOCKER_UCP_IMAGE` }}"
+
},
"provisioners": [
{
"type": "shell",
"environment_vars": [
- "KERNEL_VERSION={{user `kernel_version`}}"
+ "KERNEL_VERSION={{user `kernel_version`}}",
+ "DOCKER_EE_RELEASE={{user `docker_ee_release`}}",
+ "DOCKER_EE_URL={{user `docker_ee_url`}}",
+ "DOCKER_UCP_IMAGE={{user `docker_ucp_image`}}"
],
"scripts": [
"scripts/apt.sh",
- "scripts/cleanup.sh"
+ "scripts/docker.sh",
+ "scripts/cleanup.sh"
]
}
],