File tree 2 files changed +10
-4
lines changed
tests/Agent/IntegrationTests/ContainerApplications
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,15 @@ RUN dotnet publish "SmokeTestApp.csproj" -c Release -o /app/publish /p:UseAppHos
20
20
21
21
FROM base AS final
22
22
ARG DOTNET_VERSION
23
- # install asp.netcore - use the Centos 7 package feed because amazonlinux is rhel based
24
- RUN rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
25
- RUN yum install aspnetcore-runtime-${DOTNET_VERSION} -y
23
+ # install asp.netcore the *really* hard way...
24
+ # other methods don't seem to work or take forever
25
+ RUN echo "max_parallel_downloads=10" >> /etc/dnf/dnf.conf
26
+ RUN echo "fastestmirror=true" >> /etc/dnf/dnf.conf
27
+ RUN dnf install -y wget tar findutils gzip libicu
28
+ RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
29
+ RUN chmod +x ./dotnet-install.sh
30
+ RUN ./dotnet-install.sh --channel ${DOTNET_VERSION} --runtime aspnetcore
31
+ ENV PATH="${PATH}:/root/.dotnet:/root/.dotnet/tools"
26
32
27
33
# Enable the agent
28
34
ARG NEW_RELIC_HOST
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ services:
66
66
file : docker-compose-smoketestapp.yml
67
67
service : smoketestapp
68
68
build :
69
- dockerfile : SmokeTestApp/Dockerfile.centos
69
+ dockerfile : SmokeTestApp/Dockerfile.amazon
70
70
71
71
networks :
72
72
default :
You can’t perform that action at this time.
0 commit comments