Repository navigation
feat(docker): keep only the run-time files in the image - #1
Merged
Merged
Conversation
Export the project to a .pck and run it with the release export template instead of the editor. Copy just the programs, the libraries they load and their data onto scratch: no package manager, no editor, only the Intel Vulkan driver. Default to a non-root user. CI: build on pull requests, check that all libraries resolve and the scripts load from the .pck, report the size. Publish from main only, pin actions by commit SHA and limit packages: write to the build job.
…have no --main-pack
Release export templates are built without path overrides, so they drop -s, --main-loop and the scene path from the command line (main.cpp clears them when OVERRIDE_PATH_ENABLED is off). The image ran the template with -s res://scripts/main.gd, so Godot started an empty SceneTree and never exited: the renderer did nothing, and the CI check waited until the job was cancelled. main.gd now has a class name and project.godot names it in application/run/main_loop_type, which the template honours. render.sh and the CI check drop -s. Every container in the check gets a time limit.
The release template stops in setup with "no main scene defined" when the command line names no scene, even if a main loop type is set. main.tscn is an empty Node, so the template starts and RendererMain runs.
The pack stage copied only project.godot, export_presets.cfg, scripts and shaders, so the export had no main scene to load.
The runner has no GPU, so drawing is checked on the server. The image is saved as an artifact on pull requests only.
Member
Author
|
本番機の内蔵 GPU (Intel UHD 730) で、このプルリクエストのイメージ (CI の成果物、50b402f) を試した。
途中で見つけて直したこと:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Shrinks the image: exports a .pck, runs it with the release template, and copies only the needed files onto scratch. The GPU path still needs a check on a machine with the iGPU before this replaces the running image.