-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart
More file actions
22 lines (15 loc) · 907 Bytes
/
start
File metadata and controls
22 lines (15 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# Configuration file for the agent
$ OPTS="-v `pwd`/contrast_security.yaml:/juice-shop/contrast_security.yaml:ro"
# If application.name not set in YAML file, you can specify in environment
OPTS="$OPTS -e CONTRAST__APPLICATION__NAME=juiceshop-guide"
OPTS="$OPTS -e DEBUG=contrast:\*"
OPTS="$OPTS -e CONTRAST__AGENT__LOGGER__STDOUT=true"
# /proc/1/fd/1 is stdout for pid 1 (our node app)
OPTS="$OPTS -e CONTRAST__AGENT__SERVICE__LOGGER__PATH=/proc/1/fd/1"
OPTS="$OPTS -e CONTRAST__CONFIG__PATH=/juice-shop/contrast_security.yaml"
OPTS="$OPTS -e CONTRAST_CONFIG_PATH=/juice-shop/contrast_security.yaml"
#OPTS="$OPTS -e CONTRAST__AGENT__LOGGER__LEVEL=debug"
#OPTS="$OPTS -e CONTRAST__AGENT__SERVICE__LOGGER__LEVEL=debug"
echo STARTING WITH docker run --rm -it --name contrast-js -p 3000:3000 $OPTS juiceshop:contrast
docker run --rm -it --name contrast-js -p 3000:3000 $OPTS juiceshop:contrast