Update and optimize meta tester and inflator images #3958
Merged
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.
Motivations
Changes
Now instead of using
mono:latest
, which is an old OS that installs Python 3.7, we start with the much more currentubuntu:latest
and install the latest Mono and Python. This gives the following software versions as of this writing:These will be updated to the current versions for
ubuntu:latest
each time we build the image. Using a newer base OS also allows us to retire the certificate hackery from #3457, since the expired certificate has been removed from the distro. The image now includes only the files it needs at runtime (I built it and confirmed it can inflate netkans from GitHub and SpaceDock, create fake instances, and install mods) and is much smaller:This might allow it to load faster when we use it on GitHub. 🤞
The inflator also now excludes the Mono build tools and is a fraction of its former size.
To make the inflator's smoke test work without installing
curl
in the image,netkan.exe
can now accept a URL to a netkan as its command line parameter.