Skip to content

Instantly share code, notes, and snippets.

@robertobarreda
Created July 7, 2020 10:06
Show Gist options
  • Save robertobarreda/0381dab8eb29fcede0c1fbf9c2c4d4a9 to your computer and use it in GitHub Desktop.
Save robertobarreda/0381dab8eb29fcede0c1fbf9c2c4d4a9 to your computer and use it in GitHub Desktop.
JEDI SI - CTF juice shop
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "debian/buster64"
config.vm.network "forwarded_port", guest: 3000, host: 3000
# config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provider "virtualbox" do |vb|
vb.memory = "256"
end
config.vm.provision "shell", inline: <<-SHELL
apt-get -yq update && apt-get install -yq --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common \
;
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
apt-get -yq update && apt-get install -yq --no-install-recommends \
docker-ce \
docker-ce-cli \
containerd.io \
;
docker run --restart=always -d -p 3000:3000 --name juice-shop -e "NODE_ENV=ctf" bkimminich/juice-shop
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment