Install common dependencies in Dockerfile.base

This commit is contained in:
Rémi Verschelde
2019-11-15 10:12:58 +01:00
parent 341c290a6e
commit 046e892f76
12 changed files with 16 additions and 13 deletions

View File

@@ -2,7 +2,7 @@ ARG mono_version
FROM godot-mono:${mono_version}
ARG mono_version
RUN dnf -y install scons java-1.8.0-openjdk-devel ncurses-compat-libs unzip which gcc gcc-c++ && \
RUN dnf -y install java-1.8.0-openjdk-devel ncurses-compat-libs gcc gcc-c++ && \
mkdir sdk && cd sdk && \
curl -LO https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip && \
unzip sdk-tools-linux-4333796.zip && \
@@ -14,8 +14,7 @@ RUN dnf -y install scons java-1.8.0-openjdk-devel ncurses-compat-libs unzip whic
ENV ANDROID_HOME=/root/sdk/
ENV ANDROID_NDK_ROOT=/root/sdk/ndk-bundle/
RUN dnf -y install git patch && \
git clone https://github.com/mono/mono --branch mono-${mono_version} --single-branch && \
RUN git clone https://github.com/mono/mono --branch mono-${mono_version} --single-branch && \
cd mono && git submodule update --init && \
patch -p1 < /root/files/patches/fix-mono-android-tkill.diff && \
cd .. && \

View File

@@ -2,4 +2,6 @@ FROM fedora:30
WORKDIR /root
RUN dnf install -y bash bzip2 curl git make patch pkgconfig python3 scons unzip which xz && dnf clean all
CMD /bin/true

View File

@@ -1,6 +1,6 @@
FROM godot-fedora:latest
RUN dnf -y install automake autoconf clang gcc gcc-c++ gcc-objc gcc-objc++ cmake git libicu-devel libtool libxml2-devel llvm-devel make openssl-devel patch perl python scons xz yasm && \
RUN dnf -y install automake autoconf clang gcc gcc-c++ gcc-objc gcc-objc++ cmake libicu-devel libtool libxml2-devel llvm-devel openssl-devel perl python yasm && \
git clone https://github.com/tpoechtrager/cctools-port.git && \
cd /root/cctools-port && \
sed -i 's#./autogen.sh#libtoolize -c -i --force\n./autogen.sh#' usage_examples/ios_toolchain/build.sh && \

View File

@@ -1,6 +1,6 @@
FROM godot-fedora:latest
RUN dnf -y install which scons git bzip2 xz java-openjdk yasm && dnf clean all && \
RUN dnf -y install java-openjdk yasm && dnf clean all && \
git clone https://github.com/emscripten-core/emsdk && \
cd emsdk && \
./emsdk install 1.39.0 && \

View File

@@ -4,7 +4,7 @@ ARG mono_version
RUN if [ -z "${mono_version}" ]; then echo -e "\n\nargument mono-version is mandatory!\n\n"; exit 1; fi
RUN dnf -y install autoconf automake libtool cmake gcc gcc-c++ make which perl python curl bzip2 xz && dnf clean all && \
RUN dnf -y install autoconf automake libtool cmake gcc gcc-c++ perl python && dnf clean all && \
if [ ${mono_version%%.*} -ge 6 ]; then \
curl https://download.mono-project.com/sources/mono/mono-${mono_version}.tar.xz | tar xJ; \
else \

View File

@@ -2,6 +2,6 @@ ARG mono_version
FROM godot-mono:${mono_version}
ARG mono_version
RUN dnf -y install scons xorg-x11-server-Xvfb pkgconfig libX11-devel libXcursor-devel libXrandr-devel libXinerama-devel libXi-devel mesa-libGL-devel alsa-lib-devel pulseaudio-libs-devel freetype-devel openssl-devel libudev-devel mesa-libGLU-devel mesa-dri-drivers && dnf clean all
RUN dnf -y install xorg-x11-server-Xvfb libX11-devel libXcursor-devel libXrandr-devel libXinerama-devel libXi-devel mesa-libGL-devel alsa-lib-devel pulseaudio-libs-devel freetype-devel openssl-devel libudev-devel mesa-libGLU-devel mesa-dri-drivers && dnf clean all
CMD ['/bin/bash']

View File

@@ -1,7 +1,7 @@
FROM godot-fedora:latest
ENV WINEDEBUG=-all
RUN dnf -y install wine winetricks xorg-x11-server-Xvfb curl p7zip-plugins findutils && dnf clean all && \
RUN dnf -y install wine winetricks xorg-x11-server-Xvfb p7zip-plugins findutils && dnf clean all && \
curl -LO https://github.com/GodotBuilder/godot-builds/releases/download/_tools/angle.7z && \
curl -LO https://www.python.org/ftp/python/3.7.2/python-3.7.2-amd64.exe && \
xvfb-run sh -c "winetricks -q vcrun2017; wineserver -w" ;\

View File

@@ -4,7 +4,7 @@ ARG mono_version
RUN if [ -z "${mono_version}" ]; then echo -e "\n\nargument mono-version is mandatory!\n\n"; exit 1; fi
RUN dnf -y install automake autoconf bzip2-devel clang git libicu-devel libtool libxml2-devel llvm-devel make openssl-devel patch scons xz bzip2 yasm && dnf clean all && \
RUN dnf -y install automake autoconf bzip2-devel clang libicu-devel libtool libxml2-devel llvm-devel openssl-devel yasm && dnf clean all && \
git clone https://github.com/tpoechtrager/osxcross.git && \
cd /root/osxcross && \
ln -s /root/files/MacOSX10.14.sdk.tar.xz /root/osxcross/tarballs && \

View File

@@ -12,8 +12,9 @@ RUN apt-get update && \
echo 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main' >> /etc/apt/sources.list && \
echo 'deb http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main' >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y bzip2 cmake curl git make perl scons xz-utils && \
apt-get install -y gcc-8 g++-8 libudev-dev libx11-dev libxcursor-dev libxrandr-dev libasound2-dev libpulse-dev \
libfreetype6-dev libgl1-mesa-dev libglu1-mesa-dev libxi-dev libxinerama-dev git scons cmake perl make curl bzip2 xz-utils yasm && \
libfreetype6-dev libgl1-mesa-dev libglu1-mesa-dev libxi-dev libxinerama-dev yasm && \
ln -sf /usr/bin/gcc-ranlib-8 /usr/bin/gcc-ranlib && \
ln -sf /usr/bin/gcc-ar-8 /usr/bin/gcc-ar && \
ln -sf /usr/bin/gcc-8 /usr/bin/gcc && \

View File

@@ -12,8 +12,9 @@ RUN apt-get update && \
echo 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main' >> /etc/apt/sources.list && \
echo 'deb http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main' >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y bzip2 cmake curl git make perl scons xz-utils && \
apt-get install -y gcc-8 g++-8 libudev-dev libx11-dev libxcursor-dev libxrandr-dev libasound2-dev libpulse-dev \
libfreetype6-dev libgl1-mesa-dev libglu1-mesa-dev libxi-dev libxinerama-dev git scons cmake perl make curl bzip2 xz-utils yasm && \
libfreetype6-dev libgl1-mesa-dev libglu1-mesa-dev libxi-dev libxinerama-dev yasm && \
ln -sf /usr/bin/gcc-ranlib-8 /usr/bin/gcc-ranlib && \
ln -sf /usr/bin/gcc-ar-8 /usr/bin/gcc-ar && \
ln -sf /usr/bin/gcc-8 /usr/bin/gcc && \

View File

@@ -4,7 +4,7 @@ ARG mono_version
RUN if [ -z "${mono_version}" ]; then echo -e "\n\nargument mono-version is mandatory!\n\n"; exit 1; fi
RUN dnf -y install scons mingw32-gcc mingw32-gcc-c++ mingw32-winpthreads-static mingw64-gcc mingw64-gcc-c++ mingw64-winpthreads-static yasm bzip2 xz && dnf clean all && \
RUN dnf -y install mingw32-gcc mingw32-gcc-c++ mingw32-winpthreads-static mingw64-gcc mingw64-gcc-c++ mingw64-winpthreads-static yasm && dnf clean all && \
rpm -Uvh --force /root/files/mingw-binutils-generic-2.30-5.fc29.godot.x86_64.rpm \
/root/files/mingw64-binutils-2.30-5.fc29.godot.x86_64.rpm \
/root/files/mingw32-binutils-2.30-5.fc29.godot.x86_64.rpm && \

View File

@@ -1,6 +1,6 @@
FROM godot-fedora:latest
RUN dnf -y install autoconf automake libtool clang cmake fuse fuse-devel git patch make libxml2-devel libicu-devel compat-openssl10-devel bzip2-devel kmod xz cpio && \
RUN dnf -y install autoconf automake libtool clang cmake fuse fuse-devel libxml2-devel libicu-devel compat-openssl10-devel bzip2-devel kmod cpio && \
git clone https://github.com/mackyle/xar.git && \
cd xar/xar && \
./autogen.sh --prefix=/usr && \