-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathJuice_Shop.sh
38 lines (25 loc) · 949 Bytes
/
Juice_Shop.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# update apt-get
export DEBIAN_FRONTEND="noninteractive"
sudo apt-get -y update
# remove previously installed Docker
sudo apt-get remove docker docker-engine docker.io* lxc-docker*
# install dependencies 4 cert
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
# add Docker repo gpg key
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
echo "deb https://download.docker.com/linux/debian stretch stable" >> /etc/apt/sources.list
# install Docker
sudo apt-get -y install docker-ce
# run Hellow World image
sudo docker run hello-world
# manage Docker as a non-root user
sudo groupadd docker
sudo usermod -aG docker $USER
# configure Docker to start on boot
sudo systemctl enable docker
# pulls juice-shop
docker pull bkimminich/juice-shop
# runs juice-shop
docker run --rm -p 3000:3000 bkimminich/juice-shop
echo 'now browse to http://localhost:3000'