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

Added Docker to Vagrant VM init script #3756

Merged
merged 2 commits into from
Jan 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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."
surahman marked this conversation as resolved.
Show resolved Hide resolved

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