Debian Codegraph @

test/Build.centos7xz

raw
1 #!/bin/bash
2
3 # Download an xz-compressed CentOS 7 tarball. These are the base images for
4 # the official CentOS Docker images.
5 #
6 # https://github.com/CentOS/sig-cloud-instance-images
7 #
8 # This GitHub repository is arranged with CentOS version and architecture in
9 # different branches. We download the latest for a given architecture.
10 #
11 # To check what version is in a tarball (on any architecture):
12 #
13 # $ tar xf centos-7-${arch}-docker.tar.xz --to-stdout ./etc/centos-release
14 #
15 # ch-test-scope: standard
16 # ch-test-builder-exclude: none
17
18 set -ex
19
20 #srcdir=$1 # unused
21 tarball=${2}.tar.xz
22 #workdir=$3 # unused
23
24 wget -nv -O "$tarball" "https://github.com/CentOS/sig-cloud-instance-images/blob/CentOS-7-$(uname -m)/docker/centos-7-$(uname -m)-docker.tar.xz?raw=true"