Skip to content

Commit 8a73cff

Browse files
committed
Add documentation.
1 parent 71506f2 commit 8a73cff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
#!/bin/bash
22

3+
# Name of the image locally.
34
LOCAL_ACCESSIBILITY_SCAN_IMAGE='asap:accessibility_scan'
45

6+
# Store the directory this script is in.
7+
# This allows us to run the script consistently from anywhere.
58
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
69

10+
# Build the image if not cached.
711
docker build -t $LOCAL_ACCESSIBILITY_SCAN_IMAGE $SCRIPT_DIR/../.
812

13+
# Run the scan and dump output to stdout.
914
docker run --rm --add-host host.docker.internal:host-gateway -v $SCRIPT_DIR/../:/workspace $LOCAL_ACCESSIBILITY_SCAN_IMAGE python main.py

0 commit comments

Comments
 (0)