session1/ now holds the whole live lab (content, platforms, docs, answer key, README); session2/ keeps the design for the second workshop. The root README indexes both and states that session2 modifies session1 rather than duplicating it. build-bundle.sh builds from session1 and still produces a flat archive, so the documented paths inside a deployment (platforms/<p>/lab.sh) are unchanged. .gitignore follows the move.
21 lines
665 B
Bash
Executable File
21 lines
665 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# lab.sh — Norbourg lab on a generic Linux host (QEMU/KVM).
|
|
set -euo pipefail
|
|
|
|
LAB_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd -P)
|
|
ROOT_DIR=$(cd -- "$LAB_DIR/../.." && pwd -P)
|
|
CONTENT_DIR="$ROOT_DIR/content"
|
|
PLATFORM=qemu
|
|
export LAB_DIR ROOT_DIR CONTENT_DIR PLATFORM
|
|
|
|
source "$CONTENT_DIR/lib/common.sh"
|
|
for _lib in check cmd_init cmd_isos cmd_seeds cmd_build cmd_provision cmd_web \
|
|
cmd_snapshot cmd_doctor cmd_misc cmd_kali; do
|
|
# shellcheck disable=SC1090
|
|
source "$CONTENT_DIR/lib/${_lib}.sh"
|
|
done
|
|
unset _lib
|
|
|
|
# shellcheck source=../../content/lib/dispatch.sh
|
|
source "$CONTENT_DIR/lib/dispatch.sh"
|