Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Added Docker to Vagrant VM init script (#3756)
Browse files Browse the repository at this point in the history
* Added docker to the Vagrant VM init script

* Updated the subnet to match the Vagrant allowed range
  • Loading branch information
nicknezis authored Jan 4, 2022
1 parent fab089c commit f96cc7b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions vagrant/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f96cc7b

Please sign in to comment.