mirror of
https://git.revela.dev/itsRevela/LCE-Revelations.git
synced 2026-05-21 19:24:55 +00:00
Renames release artifacts, Docker image, container/service names, and shell wrappers from the legacy LCRE prefix to LCE-Revelations. * Banner asset: LCRE-banner.png to LCE-Revelations-banner.png * Docker compose service and container: minecraft-lce-dedicated-server to lce-revelations-dedicated-server * ghcr image: ghcr.io/itsrevela/minecraft-lce-dedicated-server to ghcr.io/lce-hub/lce-revelations-dedicated-server * Dockerfile MC_RUNTIME_DIR default points at the CMake build output path now that the legacy x64/ MSBuild path is no longer produced * README and helper shell scripts updated to match Workflow rename for nightly.yml release notes is folded into the FourKit commit because the FourKit CI changes overwhelm the diff.
46 lines
1.1 KiB
Bash
46 lines
1.1 KiB
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
|
COMPOSE_FILE="${SCRIPT_DIR}/docker-compose.dedicated-server.ghcr.yml"
|
|
SERVICE_NAME="lce-revelations-dedicated-server"
|
|
PERSIST_DIR="${SCRIPT_DIR}/server-data"
|
|
|
|
if [[ ! -f "${COMPOSE_FILE}" ]]; then
|
|
echo "[error] docker-compose file not found: ${COMPOSE_FILE}" >&2
|
|
exit 1
|
|
fi
|
|
|
|
if command -v docker >/dev/null 2>&1; then
|
|
COMPOSE_CMD=(docker compose)
|
|
elif command -v docker-compose >/dev/null 2>&1; then
|
|
COMPOSE_CMD=(docker-compose)
|
|
else
|
|
echo "[error] docker compose is not available." >&2
|
|
exit 1
|
|
fi
|
|
|
|
if [[ "${#}" -gt 1 ]]; then
|
|
echo "Usage: $0 [--no-pull]" >&2
|
|
exit 1
|
|
fi
|
|
|
|
DO_PULL=1
|
|
if [[ "${#}" -eq 1 ]]; then
|
|
if [[ "${1}" == "--no-pull" ]]; then
|
|
DO_PULL=0
|
|
else
|
|
echo "Usage: $0 [--no-pull]" >&2
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
if [[ "${DO_PULL}" -eq 1 ]]; then
|
|
echo "[info] Pulling latest image from GHCR..."
|
|
"${COMPOSE_CMD[@]}" -f "${COMPOSE_FILE}" pull "${SERVICE_NAME}"
|
|
fi
|
|
|
|
echo "[info] Starting dedicated server..."
|
|
"${COMPOSE_CMD[@]}" -f "${COMPOSE_FILE}" up -d "${SERVICE_NAME}"
|
|
echo "[info] Dedicated server started."
|