2019-01-07 21:51:22 +01:00
|
|
|
FROM godot-fedora:latest
|
|
|
|
|
|
|
|
ARG mono_version
|
|
|
|
|
|
|
|
RUN if [ -z "${mono_version}" ]; then echo -e "\n\nargument mono-version is mandatory!\n\n"; exit 1; fi
|
|
|
|
|
2019-11-15 11:56:31 +01:00
|
|
|
RUN dnf -y install --setopt=install_weak_deps=False \
|
|
|
|
autoconf automake cmake gettext gcc gcc-c++ libtool perl python && \
|
|
|
|
dnf clean all && \
|
2019-08-31 13:05:27 +02:00
|
|
|
if [ ${mono_version%%.*} -ge 6 ]; then \
|
|
|
|
curl https://download.mono-project.com/sources/mono/mono-${mono_version}.tar.xz | tar xJ; \
|
|
|
|
else \
|
|
|
|
curl https://download.mono-project.com/sources/mono/mono-${mono_version}.tar.bz2 | tar xj; \
|
|
|
|
fi && \
|
2019-01-07 21:51:22 +01:00
|
|
|
cd mono-${mono_version} && \
|
2019-08-31 13:05:27 +02:00
|
|
|
autoreconf -vfi && \
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib/mono --disable-boehm && \
|
2019-11-14 14:47:51 +01:00
|
|
|
make -j && make install && \
|
2019-01-07 21:51:22 +01:00
|
|
|
cd /root && \
|
|
|
|
rm -rf mono-${mono_version} && \
|
2019-08-31 13:05:27 +02:00
|
|
|
cert-sync /etc/pki/tls/certs/ca-bundle.crt
|
2019-01-07 21:51:22 +01:00
|
|
|
|
2019-08-31 13:05:27 +02:00
|
|
|
RUN rpm -ivh --nodeps https://download.mono-project.com/repo/centos8-stable/m/msbuild/msbuild-16.0+xamarinxplat.2018.09.26.17.53-0.xamarin.5.epel8.noarch.rpm \
|
|
|
|
https://download.mono-project.com/repo/centos8-stable/m/msbuild-libhostfxr/msbuild-libhostfxr-2.0.0.2017.07.06.00.01-0.xamarin.3.epel8.x86_64.rpm \
|
|
|
|
https://download.mono-project.com/repo/centos8-stable/m/msbuild/msbuild-sdkresolver-16.0+xamarinxplat.2018.09.26.17.53-0.xamarin.5.epel8.noarch.rpm \
|
|
|
|
https://download.mono-project.com/repo/centos8-stable/n/nuget/nuget-4.7.0.5148.bin-0.xamarin.2.epel8.noarch.rpm
|