Restructure the repository per session
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.
This commit is contained in:
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
# lab.sh — Norbourg lab on a Proxmox VE host.
|
||||
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=proxmox
|
||||
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; 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"
|
||||
Reference in New Issue
Block a user