Created
October 24, 2018 07:47
-
-
Save dealproc/b541bd22eaed27ec6fce4ec65b0db71c to your computer and use it in GitHub Desktop.
Docker for dotnet core 2.1 with mono
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 jetbrains/teamcity-agent | |
ENV MONO_VERSION 5.4.1.6 | |
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | |
RUN apt install apt-transport-https | |
RUN echo "deb http://download.mono-project.com/repo/ubuntu stable-xenial main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ | |
&& apt-get update \ | |
&& apt-get install -y mono-runtime \ | |
&& rm -rf /var/lib/apt/lists/* /tmp/* | |
RUN apt-get update \ | |
&& apt-get install -y binutils curl mono-complete mono-runtime-sgen ca-certificates-mono fsharp mono-vbnc nuget referenceassemblies-pcl \ | |
&& rm -rf /var/lib/apt/lists/* /tmp/* |
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
docker run -dit -e SERVER_URL="http://192.168.10.15/" -e AGENT_NAME=TC04 -v /opt/teamcity-dnc-mono:/data/teamcity_agent_conf -v /var/run/docker.sock:/var/run/docker.sock teamcity-agent-mono |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment