Validate a game server Dockerfile and port config
edgegap_validate_server_configValidate your game server Dockerfile and ports/resources against Edgegap's requirements to catch build, push, and deploy failures before they happen.
Instructions
Check a game server Dockerfile and the ports/resources you intend to register against what Edgegap requires, BEFORE building and pushing. Catches the failures that otherwise only show up after a build, push, version and deploy: ARM or Windows images (Edgegap runs linux/amd64), Unreal running as root, missing Unity -batchmode -nographics, a server bound to localhost, EXPOSE ports that do not match the version ports, a protocol that does not match the netcode transport, the "latest" tag, and bad CPU/memory ratios. Pass the Dockerfile text (read it from disk first). If there is no Dockerfile yet, call edgegap_generate_dockerfile instead. Makes no API calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ports | No | Ports you plan to pass to edgegap_create_app_version. | |
| engine | No | Game engine. Detected from the Dockerfile when omitted. | |
| netcode | No | Networking transport, to check the port protocol. Known: mirror-kcp, kcp, mirror-telepathy, telepathy, mirror-simpleweb, simpleweb, websocket, fishnet-tugboat, tugboat, netcode-for-gameobjects, ngo, unity-transport, utp, photon-fusion, litenetlib, enet, unreal-netdriver, godot-enet, godot-websocket. | |
| cpu_units | No | ||
| memory_mb | No | ||
| docker_tag | No | ||
| dockerfile | No | Full text of the Dockerfile. | |
| docker_image | No | ||
| docker_repository | No |