
- A single primary repo must be specified which holds the site_definition.yaml file. - Zero or more auxiliary repos can be specified which have additional documents used in the site definition. - Collected documents are written to a file named after their source repo. Collection must always be given a output directory rather than a single file now. Change-Id: Iceda4da18c4df45d917d88a49144e39e3f1743ed
26 lines
482 B
Bash
Executable File
26 lines
482 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
realpath() {
|
|
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
|
|
}
|
|
|
|
SCRIPT_DIR=$(realpath "$(dirname "${0}")")
|
|
SOURCE_DIR=${SCRIPT_DIR}/pegleg
|
|
if [ -z "${WORKSPACE}" ]; then
|
|
WORKSPACE="/"
|
|
fi
|
|
|
|
IMAGE=${IMAGE:-quay.io/attcomdev/pegleg:latest}
|
|
|
|
echo
|
|
echo "== NOTE: Workspace $WORKSPACE is available as /workspace in container context =="
|
|
echo
|
|
|
|
docker run --rm -t \
|
|
--net=none \
|
|
-v "${WORKSPACE}:/workspace" \
|
|
"${IMAGE}" \
|
|
pegleg "${@}"
|