This is an automated email from the ASF dual-hosted git repository. nicknezis pushed a commit to branch nicknezis/vagrant-docker in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
commit 5a052d221a1a56f7976d73f6bdbc416836aa704f Author: Nicholas Nezis <[email protected]> AuthorDate: Fri Oct 14 15:58:45 2022 -0400 Added Docker to vagrantfile --- vagrant/Vagrantfile | 2 +- vagrant/init.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile index a6ead4850d0..f96cac9b0e9 100644 --- a/vagrant/Vagrantfile +++ b/vagrant/Vagrantfile @@ -16,7 +16,7 @@ # vi: set ft=ruby : SECONDARIES=0 -NET_PREFIX="192.168.25." +NET_PREFIX="192.168.56." NODES={"primary" => NET_PREFIX + "5"} (0..SECONDARIES-1).each do |i| NODES["secondary#{i}"] = NET_PREFIX + (6 + i).to_s end diff --git a/vagrant/init.sh b/vagrant/init.sh index 415beae6486..c69492ba7ab 100644 --- a/vagrant/init.sh +++ b/vagrant/init.sh @@ -100,11 +100,23 @@ CODENAME=$(lsb_release -cs) echo "deb http://repos.mesosphere.io/${DISTRO} cosmic main" | tee /etc/apt/sources.list.d/mesosphere.list REMOVED +# install docker repo +apt-get install -qy ca-certificates curl gnupg lsb-release +curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg +echo \ + "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ + $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null + +# update installed packages apt-get -qy update # install deps apt-get install -qy ant vim zip mc curl wget openjdk-11-jdk scala git python3-setuptools python3-venv python3-dev libtool-bin python-is-python3 +# install docker +apt-get install -qy docker-ce docker-ce-cli containerd.io +usermod -aG docker vagrant + # install_mesos $mode if [ $mode == "master" ]; then # install_marathon
