From b2da960212571fc3e287eedcdc4c8c92fed9bf83 Mon Sep 17 00:00:00 2001 From: Guo Ruijing Date: Mon, 20 Nov 2017 11:19:17 -0500 Subject: update opnfv/containter box 1. add flannel, calico, busybox, nginx and ubuntu in box, 2. use whole file instead of patch 3. deploy new box Change-Id: I937e0df264ff7b639b4d6e8b7199f9502e502340 Signed-off-by: Guo Ruijing --- ci/bento.k8s.diff | 33 ------------------------------ ci/deploy.sh | 1 + ci/setup_vagrant.sh | 2 +- ci/update.sh | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 60 insertions(+), 34 deletions(-) delete mode 100644 ci/bento.k8s.diff create mode 100644 ci/update.sh diff --git a/ci/bento.k8s.diff b/ci/bento.k8s.diff deleted file mode 100644 index 6fac10f..0000000 --- a/ci/bento.k8s.diff +++ /dev/null @@ -1,33 +0,0 @@ -diff --git a/ubuntu/scripts/update.sh b/ubuntu/scripts/update.sh -index 9e872b6..02b9058 100644 ---- a/ubuntu/scripts/update.sh -+++ b/ubuntu/scripts/update.sh -@@ -25,3 +25,28 @@ EOF - - # Upgrade all installed packages incl. kernel and kernel headers - apt-get -y dist-upgrade -o Dpkg::Options::="--force-confnew"; -+ -+apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D -+apt-key adv -k 58118E89F3A912897C070ADBF76221572C52609D -+cat << EOF | tee /etc/apt/sources.list.d/docker.list -+deb [arch=amd64] https://apt.dockerproject.org/repo ubuntu-xenial main -+EOF -+ -+curl -s http://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - -+cat </etc/init/refresh-apt.conf; +description "update package index" +start on networking +task +exec /usr/bin/apt-get update +EOF + +# Disable periodic activities of apt +cat </etc/apt/apt.conf.d/10disable-periodic; +APT::Periodic::Enable "0"; +EOF + +# Upgrade all installed packages incl. kernel and kernel headers +apt-get -y dist-upgrade -o Dpkg::Options::="--force-confnew"; + +apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D +apt-key adv -k 58118E89F3A912897C070ADBF76221572C52609D +cat << EOF | tee /etc/apt/sources.list.d/docker.list +deb [arch=amd64] https://apt.dockerproject.org/repo ubuntu-xenial main +EOF + +curl -s http://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - +cat <