Merge "Add a new directory to hold pre-downloaded images"
[functest.git] / docker / add_images.sh
1 #!/usr/bin/env bash
2 #
3 # This script downloads the images that are used for testing
4 # and places them in the functest docker image
5
6 CIRROS_REPO_URL=http://download.cirros-cloud.net
7 CIRROS_AARCH64_TAG=161201
8 CIRROS_X86_64_TAG=0.3.5
9
10 wget ${CIRROS_REPO_URL}/${CIRROS_X86_64_TAG}/cirros-${CIRROS_X86_64_TAG}-x86_64-disk.img -P ${FUNCTEST_IMAGES_DIR}
11 wget ${CIRROS_REPO_URL}/${CIRROS_X86_64_TAG}/cirros-${CIRROS_X86_64_TAG}-x86_64-lxc.tar.gz -P ${FUNCTEST_IMAGES_DIR}
12
13 # Add the 3-part image for aarch64, since functest can be run from an x86 machine to test an aarch64 POD
14 wget ${CIRROS_REPO_URL}/daily/20${CIRROS_AARCH64_TAG}/cirros-d${CIRROS_AARCH64_TAG}-aarch64-disk.img -P ${FUNCTEST_IMAGES_DIR}
15 wget ${CIRROS_REPO_URL}/daily/20${CIRROS_AARCH64_TAG}/cirros-d${CIRROS_AARCH64_TAG}-aarch64-initramfs -P ${FUNCTEST_IMAGES_DIR}
16 wget ${CIRROS_REPO_URL}/daily/20${CIRROS_AARCH64_TAG}/cirros-d${CIRROS_AARCH64_TAG}-aarch64-kernel -P ${FUNCTEST_IMAGES_DIR}