2021-09-21 15:30:22 +03:00
|
|
|
FROM epicmorg/teamcity-agent:latest
|
|
|
|
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2021-12-17 03:48:02 +03:00
|
|
|
COPY sources.list.d/sources.11.list /etc/apt/sources.list.d/sources.11.list
|
|
|
|
|
2021-09-21 15:30:22 +03:00
|
|
|
##################################################################
|
|
|
|
# teamcity dotnet+powershell setup
|
|
|
|
##################################################################
|
|
|
|
# Opt out of the telemetry feature
|
|
|
|
ENV DOTNET_CLI_TELEMETRY_OPTOUT=true
|
|
|
|
# Disable first time experience
|
|
|
|
ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
|
|
|
|
# Configure Kestrel web server to bind to port 80 when present
|
|
|
|
ENV ASPNETCORE_URLS=\
|
|
|
|
# Enable detection of running in a container
|
|
|
|
ENV DOTNET_RUNNING_IN_CONTAINER=true
|
|
|
|
# Enable correct mode for dotnet watch (only mode supported in a container)
|
|
|
|
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
|
|
|
|
# Skip extraction of XML docs - generally not useful within an image/container - helps perfomance
|
|
|
|
ENV NUGET_XMLDOC_MODE=skip
|
|
|
|
#unofficial support of openssl1.1 instead of 1.0 [https://stackoverflow.com/questions/51901359]
|
|
|
|
ENV CLR_OPENSSL_VERSION_OVERRIDE=45
|
|
|
|
# PowerShell telemetry for docker image usage
|
|
|
|
ENV POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-DotnetSDK-Debian-10
|
|
|
|
#Install packages
|
|
|
|
RUN curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - && \
|
2021-12-17 03:48:02 +03:00
|
|
|
echo 'deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/debian/11/prod bullseye main' > /etc/apt/sources.list.d/microsoft.dotnet.list && \
|
2021-09-21 15:30:22 +03:00
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends --allow-unauthenticated \
|
|
|
|
libc6 \
|
2021-12-17 03:48:02 +03:00
|
|
|
libgcc1 \
|
2021-09-21 15:30:22 +03:00
|
|
|
libgssapi-krb5-2 \
|
2022-03-02 12:57:39 +03:00
|
|
|
# libicu63 \
|
2021-09-21 15:30:22 +03:00
|
|
|
liblttng-ust0 \
|
|
|
|
libssl1.1 \
|
|
|
|
libstdc++6 \
|
|
|
|
zlib1g \
|
2021-12-17 03:48:02 +03:00
|
|
|
dotnet-sdk-2.1 \
|
|
|
|
dotnet-runtime-deps-2.1 \
|
|
|
|
dotnet-runtime-2.1 \
|
|
|
|
dotnet-hostfxr-2.1 \
|
|
|
|
dotnet-sdk-3.1 \
|
|
|
|
dotnet-targeting-pack-3.1 \
|
|
|
|
dotnet-runtime-deps-3.1 \
|
|
|
|
dotnet-runtime-3.1 \
|
|
|
|
dotnet-hostfxr-3.1 \
|
|
|
|
dotnet-apphost-pack-3.1 \
|
2021-09-21 15:30:22 +03:00
|
|
|
dotnet-sdk-5.0 \
|
|
|
|
dotnet-targeting-pack-5.0 \
|
|
|
|
dotnet-runtime-deps-5.0 \
|
|
|
|
dotnet-runtime-5.0 \
|
|
|
|
dotnet-hostfxr-5.0 \
|
|
|
|
dotnet-apphost-pack-5.0 \
|
2021-12-17 03:48:02 +03:00
|
|
|
dotnet-sdk-6.0 \
|
|
|
|
dotnet-targeting-pack-6.0 \
|
|
|
|
dotnet-runtime-deps-6.0 \
|
|
|
|
dotnet-runtime-6.0 \
|
|
|
|
dotnet-hostfxr-6.0 \
|
|
|
|
dotnet-apphost-pack-6.0 \
|
2021-09-21 15:30:22 +03:00
|
|
|
dotnet-host \
|
2021-12-17 03:48:02 +03:00
|
|
|
procdump \
|
|
|
|
# procmon \
|
2021-09-21 15:30:22 +03:00
|
|
|
powershell-preview \
|
|
|
|
powershell
|
|
|
|
|
|
|
|
# Trigger .NET CLI first run experience by running arbitrary cmd to populate local package cache
|
|
|
|
RUN dotnet help && \
|
|
|
|
pwsh-preview -v && \
|
|
|
|
pwsh -v
|
|
|
|
|
2021-12-17 03:48:02 +03:00
|
|
|
|
|
|
|
##################################################################
|
|
|
|
# Mono
|
|
|
|
##################################################################
|
|
|
|
#RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
|
|
|
|
# echo "deb https://download.mono-project.com/repo/debian stable-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list && \
|
|
|
|
# echo "deb https://download.mono-project.com/repo/debian nightly-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-nightly.list && \
|
|
|
|
# echo "deb https://download.mono-project.com/repo/debian preview-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-preview.list && \
|
|
|
|
# apt-get update && \
|
|
|
|
# apt-get install -y --allow-unauthenticated \
|
|
|
|
# mono-complete \
|
|
|
|
# mono-llvm-support \
|
|
|
|
# mono-devel \
|
|
|
|
# mono-dbg \
|
|
|
|
# referenceassemblies-pcl \
|
|
|
|
# ca-certificates-mono
|
|
|
|
# mono-xsp4
|
|
|
|
|
|
|
|
|
2021-09-21 15:30:22 +03:00
|
|
|
##################################################################
|
|
|
|
# cleaninig up
|
|
|
|
##################################################################
|
|
|
|
RUN apt clean -y && \
|
|
|
|
apt-get clean all && \
|
|
|
|
apt autoclean -y && \
|
|
|
|
rm -rfv /var/lib/apt/lists/* && \
|
|
|
|
rm -rfv /var/cache/apt/archives/*.deb && \
|
|
|
|
rm -rfv /tmp/deb/* && \
|
|
|
|
rm -rfv /tmp/composer-setup.php && \
|
|
|
|
rm -rfv /tmp/amxx_base_latest.tar.gz && \
|
|
|
|
rm -rfv /tmp/atlassian-plugin-sdk.deb && \
|
|
|
|
rm -rfv /tmp/addons
|