Godot engine build containers
Go to file
Rémi Verschelde edd05b15aa
Merge pull request #137 from godotengine/3.x-linux-sdk-2024-01-17-fix-arm32
[3.x] Update Linux SDK to 2024-01-17 release, fixes arm32 lacking NEON
2024-01-17 17:20:31 +01:00
files Github changed their download page 2023-02-09 17:08:31 +01:00
.gitignore Factor out cloning and patching for godot-mono-builds 2020-04-07 16:18:37 +02:00
Dockerfile.android Update to Fedora 39, newer toolchains, add Linux arm64 2024-01-16 13:27:25 +01:00
Dockerfile.base Update to Fedora 39, newer toolchains, add Linux arm64 2024-01-16 13:27:25 +01:00
Dockerfile.export Upgrade to Fedora 36 and Mono 6.12.0.178, newer toolchains 2022-05-10 11:06:46 +02:00
Dockerfile.ios Update to Fedora 39, newer toolchains, add Linux arm64 2024-01-16 13:27:25 +01:00
Dockerfile.javascript Update to Fedora 39, newer toolchains, add Linux arm64 2024-01-16 13:27:25 +01:00
Dockerfile.linux Update Linux SDK to 2024-01-17 release, fixes arm32 lacking NEON 2024-01-17 17:19:34 +01:00
Dockerfile.mono Update to Fedora 39, newer toolchains, add Linux arm64 2024-01-16 13:27:25 +01:00
Dockerfile.mono-glue Upgrade to Fedora 36 and Mono 6.12.0.178, newer toolchains 2022-05-10 11:06:46 +02:00
Dockerfile.msvc
Dockerfile.osx Update to Fedora 39, newer toolchains, add Linux arm64 2024-01-16 13:27:25 +01:00
Dockerfile.windows Update to Fedora 39, newer toolchains, add Linux arm64 2024-01-16 13:27:25 +01:00
Dockerfile.xcode Update to Fedora 39, newer toolchains, add Linux arm64 2024-01-16 13:27:25 +01:00
README.md Update to Fedora 39, newer toolchains, add Linux arm64 2024-01-16 13:27:25 +01:00
build.sh Update to Fedora 39, newer toolchains, add Linux arm64 2024-01-16 13:27:25 +01:00
setup.sh Update to Fedora 39, newer toolchains, add Linux arm64 2024-01-16 13:27:25 +01:00
upload.sh Update to Fedora 39, newer toolchains, add Linux arm64 2024-01-16 13:27:25 +01:00

README.md

Godot engine build containers

This repository contains the Dockerfiles for the official Godot engine builds. These containers should help you build Godot for all platforms supported on any machine that can run Docker containers.

The in-container build scripts are in a separate repository: https://github.com/godotengine/godot-build-scripts

Introduction

These scripts build a number of containers which are then used to build final Godot tools, templates and server packages for several platforms.

Once these containers are built, they can be used to compile different Godot versions without the need of recreating them.

The upload.sh file is meant to be used by Godot Release Team and is not documented here.

Requirements

These containers have been tested under Fedora 36 (other distros/releases may work too).

The tool used to build and manage the containers is podman (install it with dnf -y podman).

We currently use podman as root to build and use these containers. Documenting a workflow to configure the host OS to be able to do all this without root would be welcome (but back when we tried we ran into performance issues).

Usage

The build.sh script included is used to build the containers themselves.

The first two arguments can take any value and are meant to convey what Godot branch you are building for (e.g. 3.x) and what Linux distribution the Dockerfile.base is based on (e.g. f36 for Fedora 36).

The third argument is important and should be the name of a tagged Mono release from the upstream 2020-02 branch (e.g. mono-6.12.0.182).

Run the command using:

./build.sh 3.x f39 mono-6.12.0.198

The above will generate images using the tag '3.x-f39-mono-6.12.0.198'. You can then specify it in the build.sh of godot-build-scripts.

Selecting which images to build

If you don't need to build all versions or you want to try with a single target OS first, you can comment out the corresponding lines from the script:

podman_build linux
podman_build windows
podman_build javascript
podman_build android
...

Note: The MSVC image (used for UWP builds) does not work currently.

Image sizes

These are the expected container image sizes, so you can plan your disk usage in advance:

REPOSITORY                                       TAG                        SIZE
localhost/godot-fedora                           3.x-f39-mono-6.12.0.198    624 MB
localhost/godot-export                           3.x-f39-mono-6.12.0.198    1.14 GB
localhost/godot-mono                             3.x-f39-mono-6.12.0.198    1.52 GB
localhost/godot-mono-glue                        3.x-f39-mono-6.12.0.198    1.86 GB
localhost/godot-linux                            3.x-f39-mono-6.12.0.198    4.54 GB
localhost/godot-windows                          3.x-f39-mono-6.12.0.198    3.48 GB
localhost/godot-javascript                       3.x-f39-mono-6.12.0.198    3.97 GB
localhost/godot-android                          3.x-f39-mono-6.12.0.198    6.41 GB
localhost/godot-xcode                            3.x-f39-mono-6.12.0.198    1.07 GB
localhost/godot-osx                              3.x-f39-mono-6.12.0.198    6.05 GB
localhost/godot-ios                              3.x-f39-mono-6.12.0.198    7.48 GB

In addition to this, generating containers will also require some host disk space (up to 30 GB) for the downloaded Mono sources and dependencies (Xcode, MSVC).

Toolchains

These are the toolchains currently in use for Godot 3.6 and later:

  • Base image: Fedora 39
  • Mono version: 6.12.0.198
  • SCons: 4.5.2
  • Linux: GCC 13.2.0 built against glibc 2.28, binutils 2.40, from our own Linux SDK
  • Windows: MinGW 11.0.0, GCC 13.2.1, binutils 2.40
  • HTML5: Emscripten 3.1.39 (standard builds), Emscripten 1.39.9 (Mono builds)
  • Android: Android NDK 23.2.8568313, build-tools 33.0.2, platform android-33, CMake 3.22.1, JDK 11
  • macOS: Xcode 15.0 with Apple Clang (LLVM 16.0.0), MacOSX SDK 14.0
  • iOS: Xcode 15.0 with Apple Clang (LLVM 16.0.0), iPhoneOS SDK 17.0
  • UWP: Visual Studio 2017, current configuration sadly not easily reproducible (Dockerfile.msvc image is not compiled by default as it doesn't work)