Created
March 22, 2022 22:21
-
-
Save IARI/e588e07c75d267bfd6e171f19e5e585b to your computer and use it in GitHub Desktop.
Sonar Scanner and Resharper Images based on unityci/editor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM iari/unitysonar:2020.3.25f1-android-mono46 | |
ENV RESHARPER_VERSION="2021.1.5" \ | |
RESHARPER_UNITY_VERSION="2021.1.2" | |
ENV RESHARPER_PATH=/opt/resharper \ | |
RESHARPER_DOWNLOAD_URL="https://download-cdn.jetbrains.com/resharper/dotUltimate.${RESHARPER_VERSION}/JetBrains.ReSharper.CommandLineTools.${RESHARPER_VERSION}.zip" \ | |
RESHARPER_UNITY_DOWNLOAD_URL="https://github.com/JetBrains/resharper-unity/releases/download/net211-rtm-$RESHARPER_UNITY_VERSION/JetBrains.Unity.$RESHARPER_UNITY_VERSION.127.nupkg" | |
RUN wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \ | |
&& dpkg -i packages-microsoft-prod.deb \ | |
&& rm packages-microsoft-prod.deb \ | |
&& apt-get update \ | |
&& apt-get install -y dotnet-sdk-6.0 | |
# RUN dotnet tool install --global dotnet-sonarscanner | |
RUN wget $RESHARPER_DOWNLOAD_URL -O /opt/resharper.zip \ | |
&& mkdir -p $RESHARPER_PATH \ | |
&& unzip /opt/resharper.zip -d $RESHARPER_PATH \ | |
&& rm /opt/resharper.zip \ | |
&& chmod -R 775 $RESHARPER_PATH \ | |
&& wget $RESHARPER_UNITY_DOWNLOAD_URL -O "$RESHARPER_PATH/JetBrains.Unity.$RESHARPER_UNITY_VERSION.nupkg" | |
ENV PATH="$RESHARPER_PATH:${PATH}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM unityci/editor:2020.3.25f1-android-0.15 | |
ENV SONAR_SCANNER_VERSION=4.6.2.2472 \ | |
SONAR_SCANNER_MSBUILD_VERSION=5.4.0.40033 \ | |
SONAR_SCANNER_MSBUILD_PATH=/opt/sonar-scanner-msbuild | |
RUN apt-get update \ | |
&& apt-get install -y gnupg ca-certificates \ | |
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ | |
&& echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ | |
&& apt-get update \ | |
&& apt-get install -y apt-transport-https openjdk-11-jre unzip mono-devel | |
RUN wget https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/$SONAR_SCANNER_MSBUILD_VERSION/sonar-scanner-msbuild-${SONAR_SCANNER_MSBUILD_VERSION}-net46.zip -O /opt/sonar-scanner-msbuild.zip \ | |
&& mkdir -p $SONAR_SCANNER_MSBUILD_PATH \ | |
&& unzip /opt/sonar-scanner-msbuild.zip -d $SONAR_SCANNER_MSBUILD_PATH \ | |
&& rm /opt/sonar-scanner-msbuild.zip \ | |
&& chmod -R 775 $SONAR_SCANNER_MSBUILD_PATH | |
ENV PATH="$SONAR_SCANNER_MSBUILD_PATH:$SONAR_SCANNER_MSBUILD_PATH/sonar-scanner-$SONAR_SCANNER_VERSION/bin:${PATH}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment