You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by ni...@apache.org on 2022/01/03 20:18:41 UTC

[incubator-heron] 01/02: Added docker to the Vagrant VM init script

This is an automated email from the ASF dual-hosted git repository.

nicknezis pushed a commit to branch nicknezis/vagrant-docker-update
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git

commit 5b76150ae998986b14f97d59720d6c7049613934
Author: Nicholas Nezis <ni...@gmail.com>
AuthorDate: Mon Jan 3 15:18:09 2022 -0500

    Added docker to the Vagrant VM init script
---
 vagrant/init.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)

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