Skip to content

Commit

Permalink
pull specific version of contiv/ansible
Browse files Browse the repository at this point in the history
Start using pinned versions of ansible for more repeatable builds of
the installer
  • Loading branch information
chrisplo committed Oct 6, 2017
1 parent 8d7293c commit f6bc0bd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ ansible_image_version=${CONTIV_ANSIBLE_IMAGE_VERSION:-$contiv_version}
auth_proxy_version=${CONTIV_API_PROXY_VERSION:-$contiv_version}
docker_version=${CONTIV_DOCKER_VERSION:-1.12.6}
etcd_version=${CONTIV_ETCD_VERSION:-v2.3.8}
contiv_ansible_commit=${CONTIV_ANSIBLE_COMMIT:-3cb33ce9629d5b0d27c630581bc3a26e08a0d119}
contiv_ansible_owner=${CONTIV_ANSIBLE_OWNER:-contiv}

# the installer currently pulls the v2plugin image directly from Docker Hub, but
# this will change to being downloaded from the Docker Store in the future.
Expand Down Expand Up @@ -96,8 +98,11 @@ curl -sSL https://github.com/contiv/netplugin/releases/download/$contiv_version/
pushd $output_dir
tar oxf netplugin-$contiv_version.tar.bz2 netctl
rm -f netplugin-$contiv_version.tar.bz2
git clone https://github.com/contiv/ansible
popd
# add ansible repo contents where final tarball will include
mkdir $output_dir/ansible
curl -sL https://api.github.com/repos/${contiv_ansible_owner}/ansible/tarball/$contiv_ansible_commit \
| tar --strip-components 1 -C $output_dir/ansible -z -x

# Replace versions
files=$(find $output_dir -type f -name "*.yaml" -or -name "*.sh" -or -name "*.json")
Expand Down

0 comments on commit f6bc0bd

Please sign in to comment.