diff options
author | 2021-08-13 13:43:59 -0400 | |
---|---|---|
committer | 2021-08-23 15:49:59 -0400 | |
commit | eb9d5ee86b4a3eb5ea8b687deeef2f6640365106 (patch) | |
tree | 65b1be3b3bd3c304f4f9c030b7d7346e1f74b2dd | |
parent | fa5e3cd03be280f52b29c3b4ddcb302c4117e79f (diff) |
Add terraform to docker CI executor images.
- Also restrict docs-venv to ubuntu / x86_64 images
Change-Id: I6eea04bce8819f4fd9bc34c5551a07a2a79d6655
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
-rwxr-xr-x | docker/scripts/dbld_vpp_install_packages.sh | 4 | ||||
-rw-r--r-- | docker/scripts/lib_apt.sh | 12 |
2 files changed, 12 insertions, 4 deletions
diff --git a/docker/scripts/dbld_vpp_install_packages.sh b/docker/scripts/dbld_vpp_install_packages.sh index 707096b45..99d49084f 100755 --- a/docker/scripts/dbld_vpp_install_packages.sh +++ b/docker/scripts/dbld_vpp_install_packages.sh @@ -38,8 +38,8 @@ for branch in ${VPP_BRANCHES[$OS_NAME]} ; do # Install OS packages make_vpp "install-dep" "$branch" make_vpp "centos-pyyaml" "$branch" # VPP Makefile tests for centos versions - if [ "$OS_ID" = "ubuntu" ] ; then - # 'Make docs jobs are only run on ubuntu executors + if [ "$OS_ID" = "ubuntu" ] && [ "$OS_ARCH" = "x86_64" ] ; then + # 'Make docs jobs are only run on ubuntu x86_64 executors # so only run for ubuntu build executors. make_vpp "docs-venv" "$branch" elif [ "$OS_NAME" = "debian-9" ] ; then diff --git a/docker/scripts/lib_apt.sh b/docker/scripts/lib_apt.sh index 69c2d27cf..86b7c3fc3 100644 --- a/docker/scripts/lib_apt.sh +++ b/docker/scripts/lib_apt.sh @@ -54,8 +54,8 @@ apt_override_cmake_install_with_pip3_version() { generate_apt_dockerfile_common() { local executor_class="$1" local executor_image="$2" - debian_docker_inst_sed="| sed -e 's/has_rootless_extras="1"//g' | sh -" + local dpkg_arch="$(dpkg --print-architecture)" + cat <<EOF >>"$DOCKERFILE" # Create download dir to cache external tarballs @@ -196,6 +196,7 @@ RUN apt-get update -qq \\ zlib1g-dev \\ && curl -L https://packagecloud.io/fdio/master/gpgkey | apt-key add - \\ && curl -s https://packagecloud.io/install/repositories/fdio/master/script.deb.sh | bash \\ + EOF # Docker installation script fails on debian-9, so don't install docker head $DOCKERFILE @@ -206,6 +207,13 @@ EOF cat <<EOF >>"$DOCKERFILE" && rm -r /var/lib/apt/lists/* +# Install terraform for CSIT +# +RUN wget https://releases.hashicorp.com/terraform/1.0.4/terraform_1.0.4_linux_$dpkg_arch.zip \\ + && unzip terraform_1.0.4_linux_$dpkg_arch.zip \\ + && mv terraform /usr/bin \\ + && rm -f terraform_1.0.4_linux_$dpkg_arch.zip + # Install packages for all project branches # RUN apt-get update -qq \\ |