We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71506f2 commit 8a73cffCopy full SHA for 8a73cff
python_components/accessibility_scan/scripts/local_accessibility_scan.sh
@@ -1,9 +1,14 @@
1
#!/bin/bash
2
3
+# Name of the image locally.
4
LOCAL_ACCESSIBILITY_SCAN_IMAGE='asap:accessibility_scan'
5
6
+# Store the directory this script is in.
7
+# This allows us to run the script consistently from anywhere.
8
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
9
10
+# Build the image if not cached.
11
docker build -t $LOCAL_ACCESSIBILITY_SCAN_IMAGE $SCRIPT_DIR/../.
12
13
+# Run the scan and dump output to stdout.
14
docker run --rm --add-host host.docker.internal:host-gateway -v $SCRIPT_DIR/../:/workspace $LOCAL_ACCESSIBILITY_SCAN_IMAGE python main.py
0 commit comments