Skip to content

Commit

Permalink
Curl scripts instead of using local path (#535)
Browse files Browse the repository at this point in the history
Curl devpool.sh to make Vagrantfile self-contained

Curl scripts/example-config.toml instead of local path
  • Loading branch information
nikimanoledaki authored Sep 22, 2022
1 parent 70e020d commit 1063089
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,12 @@ EOF
SHELL
end

config.vm.provision "configure-thinpool", type: "shell",
run: "once", path: "./hack/scripts/devpool.sh"
config.vm.provision "configure-thinpool", type: "shell", run: "once" do |sh|
sh.inline = <<~SHELL
curl -fsSL "https://raw.githubusercontent.com/weaveworks-liquidmetal/flintlock/main/hack/scripts/devpool.sh" -o /tmp/devpool.sh
chmod +x /tmp/devpool.sh && /tmp/devpool.sh
SHELL
end

config.vm.provision "configure-containerd", type: "shell", run: "once" do |sh|
sh.inline = <<~SHELL
Expand All @@ -96,7 +100,7 @@ EOF
mkdir -p /var/lib/containerd-dev/snapshotter/devmapper
mkdir -p /run/containerd-dev/
cp /home/vagrant/flintlock/hack/scripts/example-config.toml /etc/containerd/config.toml
curl -fsSL "https://raw.githubusercontent.com/weaveworks-liquidmetal/flintlock/main/hack/scripts/example-config.toml" -o /etc/containerd/config.toml
systemctl restart containerd
SHELL
Expand Down

0 comments on commit 1063089

Please sign in to comment.