Skip to content

Commit 94bb0a4

Browse files
committed
add shell script to call Orca in Docker
It forwards a call to Orca in Docker in a seamless fashion by: - binding the container to the host's networking stack - bind-mounting the current folder into the container at the same path - setting the current directory to the current path
1 parent 88fc32d commit 94bb0a4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

deployment/orca

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
DOCKER_IMAGE=quay.io/plotly/orca
4+
5+
if [[ $1 == "--help" || $1 == "--version" || $1 == "graph" || $1 == "serve" ]]; then
6+
docker run --net=host -it \
7+
-v "$(pwd)":"$(pwd)" -w "$(pwd)" \
8+
"$DOCKER_IMAGE" "$@"
9+
else
10+
echo "Unrecognized orca command. Run \`$0 --help\` for more info"
11+
fi

0 commit comments

Comments
 (0)