Skip to content

Commit

Permalink
Merge pull request #4 from rfid-applied/master
Browse files Browse the repository at this point in the history
Taking rfid-applied
  • Loading branch information
nathansamson authored Feb 21, 2018
2 parents 8c09c03 + 2faa6e6 commit 9e9421f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 && \
Expand All @@ -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/
Expand Down

0 comments on commit 9e9421f

Please sign in to comment.