-
Notifications
You must be signed in to change notification settings - Fork 4
/
run-katacoda-docs.zsh
executable file
·24 lines (16 loc) · 1.01 KB
/
run-katacoda-docs.zsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/zsh
# This script runs a set of Katacoda Markdown files in associated containers.
# Basically it's a bunch of commands that runs Katacoda files in associated
# containers after cloning the katacoda-scenarios repository.
REPO=https://github.com/iterative/katacoda-scenarios
CLONE_PATH="/tmp/katacoda-scenarios-${RANDOM}"
DIR="${CLONE_PATH}/get-started"
export PYTHONPATH=${PYTHONPATH}:$(dirname $0)/../
RUNNER="$(dirname $0)/../bin/run-in-container.py"
git clone $REPO $CLONE_PATH
$RUNNER --debug -c emresult/doc-katacoda:base -k execute ${DIR}/01-initialize/*.md
$RUNNER --debug -c emresult/doc-katacoda-gs:versioning -k execute ${DIR}/02-versioning/*.md
$RUNNER --debug -c emresult/doc-katacoda-gs:accessing -k execute ${DIR}/03-accessing/*.md
$RUNNER --debug -c emresult/doc-katacoda-gs:stages -k execute ${DIR}/04-stages/*.md
$RUNNER --debug -c emresult/doc-katacoda-gs:params -k execute ${DIR}/05-params-metrics-plots/*.md
$RUNNER --debug -c emresult/doc-katacoda-gs:experiments -k execute ${DIR}/06-experiments/*.md