23 lines
No EOL
620 B
Bash
Executable file
23 lines
No EOL
620 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -exu
|
|
|
|
# dependencies
|
|
apt-get update
|
|
apt-get install -y \
|
|
curl \
|
|
bzip2 \
|
|
openssh-client \
|
|
qemu-kvm
|
|
|
|
URL="http://${CL_CHANNEL}.release.core-os.net/amd64-usr/${CL_VERSION}/coreos_production_qemu_image.img.bz2"
|
|
echo "Downloading Container Linux $CL_CHANNEL $CL_VERSION $URL"
|
|
curl -O $URL
|
|
bzip2 -d coreos_production_qemu_image.img.bz2
|
|
|
|
curl -L https://github.com/coreos/container-linux-config-transpiler/releases/download/v0.3.0/ct-v0.3.0-x86_64-unknown-linux-gnu -o ct
|
|
chmod +x ct
|
|
|
|
apt-get remove -y curl bzip2
|
|
apt-get autoremove -y
|
|
apt-get clean
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |