You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by jo...@apache.org on 2022/01/04 13:46:42 UTC
[incubator-heron] branch master updated: Added Docker to Vagrant VM init script (#3756)
This is an automated email from the ASF dual-hosted git repository.
joshfischer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
The following commit(s) were added to refs/heads/master by this push:
new f96cc7b Added Docker to Vagrant VM init script (#3756)
f96cc7b is described below
commit f96cc7b6e95a6b38bbf9f5d6e73d2f3abd95b822
Author: Nicholas Nezis <ni...@gmail.com>
AuthorDate: Tue Jan 4 08:46:32 2022 -0500
Added Docker to Vagrant VM init script (#3756)
* Added docker to the Vagrant VM init script
* Updated the subnet to match the Vagrant allowed range
---
vagrant/Vagrantfile | 2 +-
vagrant/init.sh | 12 ++++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile
index a6ead48..f96cac9 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 415beae..c69492b 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