mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-09 14:15:22 +01:00
677e13353f
* Adds Dockerfile and Utility Scripts * Remove RUSTG_VERSION from _build_dependencies.sh * Moved documentation to references, added link to mkdocs.yml * Update references, finish documentation, fix typos * Fixed small error in docs and scripts * Add CI action to build and publish game server images * Bump CI action to compatible Ubuntu runner * Fix up the base image for NanoMap rendering * Remove commented out base for nanomap-build stage * Removed default values from Dockerfile build arguments Sanitized default arguments in Dockerfile Updated CI workflow to use _build_dependencies.sh to build the Docker image Added documentation on using --build-arg flags with the docker build command * Modify caching for Docker builds in CI * Add missing files to pacify Nanomap Renderer
25 lines
591 B
Bash
Executable File
25 lines
591 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# debug-server
|
|
# Start a server container with a bash shell for debugging
|
|
|
|
set -euo pipefail
|
|
|
|
NETWORK_NAME="paradise_net"
|
|
SERVER_IMAGE="paradise:latest"
|
|
|
|
# make sure we're at the root of the repository
|
|
if [ ! -f "Dockerfile" ]; then
|
|
echo >&2 "Error: No Dockerfile found. Are you at the repository root?"
|
|
exit 1
|
|
fi
|
|
|
|
# create a server container, but run a bash shell, not DreamDaemon
|
|
docker run \
|
|
--entrypoint /bin/bash \
|
|
--interactive \
|
|
--name paradise_debug_$(date +%s) \
|
|
--network "${NETWORK_NAME}" \
|
|
--rm \
|
|
--tty \
|
|
"${SERVER_IMAGE}"
|