Skip to content

Commit

Permalink
chore: tidy up vagrant provision a little
Browse files Browse the repository at this point in the history
  • Loading branch information
nixpig committed Dec 8, 2024
1 parent 263e8c6 commit 1ac2360
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ Vagrant.configure("2") do |config|


config.vm.provision "shell", inline: <<-SHELL
apt-get update \
&& apt-get install -y ca-certificates curl
set -e -x -o pipefail
install -m 0755 -d /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc \
&& chmod a+r /etc/apt/keyrings/docker.asc
apt-get update
apt-get install -y ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
Expand All @@ -29,7 +31,7 @@ Vagrant.configure("2") do |config|
tar -C /usr/local -xzf go.tar.gz
echo "PATH=$PATH:/usr/local/go/bin" >> /etc/environment
groupadd docker
groupadd docker || echo "Group already exists"
gpasswd -a vagrant docker
service docker restart
SHELL
Expand Down

0 comments on commit 1ac2360

Please sign in to comment.