mirror of
https://github.com/godotengine/build-containers.git
synced 2026-01-03 10:09:18 +03:00
Specifying only a branch like '2019-08' is problematic if upstream commits something between the builds of two containers. We could make a tarball in the first container build and reuse that, but we need the flexibility of Git for some patching in the Android and JavaScript builds, so instead we allow specifying a git tree-ish as the third argument. We can therefore also give a pretty version string to use for the image name as second argument, e.g. 6.6.0.160 for bef1e6335812d32f8eab648c0228fc624b9f8357. As we can't `git clone` a commit hash directly, we still need to provide both branch name and then commit hash for this use case.
29 lines
1.4 KiB
Docker
29 lines
1.4 KiB
Docker
ARG img_version
|
|
FROM godot-fedora:${img_version}
|
|
|
|
ARG mono_version
|
|
ARG mono_commit
|
|
|
|
RUN if [ -z "${mono_version}" ]; then echo -e "\n\nargument mono-version is mandatory!\n\n"; exit 1; fi && \
|
|
dnf -y install --setopt=install_weak_deps=False \
|
|
autoconf automake cmake gcc gcc-c++ gettext libtool perl python && \
|
|
dnf clean all && \
|
|
git clone https://github.com/mono/mono --branch ${mono_version} --single-branch && \
|
|
cd /root/mono && \
|
|
if [ ! -z "${mono_commit}" ]; then git checkout ${mono_commit}; fi && \
|
|
git submodule update --init && \
|
|
NOCONFIGURE=1 ./autogen.sh && \
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib/mono --disable-boehm && \
|
|
make -j && \
|
|
make install && \
|
|
cd /root && \
|
|
cert-sync /etc/pki/tls/certs/ca-bundle.crt && \
|
|
rpm -ivh --nodeps \
|
|
https://download.mono-project.com/repo/centos8-stable/m/msbuild/msbuild-16.3+xamarinxplat.2019.08.08.00.55-0.xamarin.2.epel8.noarch.rpm \
|
|
https://download.mono-project.com/repo/centos8-stable/m/msbuild-libhostfxr/msbuild-libhostfxr-3.0.0.2019.04.16.02.13-0.xamarin.4.epel8.x86_64.rpm \
|
|
https://download.mono-project.com/repo/centos8-stable/m/msbuild/msbuild-sdkresolver-16.3+xamarinxplat.2019.08.08.00.55-0.xamarin.2.epel8.noarch.rpm \
|
|
https://download.mono-project.com/repo/centos8-stable/n/nuget/nuget-5.2.0.6090.bin-0.xamarin.1.epel8.noarch.rpm && \
|
|
rm -rf /root/mono
|
|
|
|
CMD /bin/bash
|