diff --git a/Dockerfile b/Dockerfile index 7667441..2f848af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM fedora:25 +FROM fedora:27 RUN dnf install gnupg wget dnf-plugins-core -y \ && rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" \ && dnf config-manager --add-repo http://download.mono-project.com/repo/centos7/ \ - && dnf install libzip mono-devel nuget msbuild referenceassemblies-pcl -y \ + && dnf install libzip bzip2 bzip2-libs mono-devel nuget msbuild referenceassemblies-pcl -y \ && dnf clean all RUN dnf install curl unzip java-1.8.0-openjdk-headless java-1.8.0-openjdk-devel -y && \ @@ -15,14 +15,16 @@ RUN mkdir -p /android/sdk && \ rm sdk-tools-linux-3859397.zip RUN cd /android/sdk && \ - yes | ./tools/bin/sdkmanager 'build-tools;25.0.3' platform-tools 'platforms;android-25' 'ndk-bundle' - -RUN curl -L https://jenkins.mono-project.com/view/Xamarin.Android/job/xamarin-android-linux/lastSuccessfulBuild/Azure/processDownloadRequest/xamarin-android/oss-xamarin.android_v7.3.99.59_Linux-x86_64_master_4799ea2.zip \ - -o oss-xamarin.android_v7.3.99.59_Linux-x86_64_master_4799ea2.zip && \ - unzip -q oss-xamarin.android_v7.3.99.59_Linux-x86_64_master_4799ea2.zip && \ - mv oss-xamarin.android_v7.3.99.59_Linux-x86_64_master_4799ea2 /android/xamarin && \ - ln -s /android/xamarin/bin/Debug/lib/xbuild-frameworks/MonoAndroid/ /usr/lib/mono/xbuild-frameworks/MonoAndroid && \ - rm oss-xamarin.android_v7.3.99.59_Linux-x86_64_master_4799ea2.zip + yes | ./tools/bin/sdkmanager --licenses && \ + ./tools/bin/sdkmanager 'build-tools;23.0.3' platform-tools 'platforms;android-23' 'ndk-bundle' + +RUN dnf install lynx -y +RUN lynx -listonly -dump https://jenkins.mono-project.com/view/Xamarin.Android/job/xamarin-android-linux/lastSuccessfulBuild/Azure/ | grep -o "https://.*/Azure/processDownloadRequest/xamarin-android/oss-xamarin.android_v.*" > link.txt +RUN curl -L $(cat link.txt) \ + -o xamarin.tar.bz2 +RUN bzip2 -cd xamarin.tar.bz2 | tar -xvf - +RUN mv oss-xamarin.android_v* /android/xamarin && \ + rm xamarin.tar.bz2 ENV ANDROID_NDK_PATH=/android/sdk/ndk-bundle ENV ANDROID_SDK_PATH=/android/sdk/