-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added workaround for dotnetcore runtime images build failure #22
Added workaround for dotnetcore runtime images build failure #22
Conversation
@@ -16,7 +16,8 @@ FROM %DOTNETCORE_BASE_IMAGE% | |||
# a version of `curl` that has known issues. | |||
# We manually update it here so we can still depend on the original images. | |||
# This command should be removed once support for deprecated .NET core images is halted. | |||
RUN apt update && apt install curl --yes | |||
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list # Now archived |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got this workaround from here: debuerreotype/docker-debian-artifacts#66 (comment) which seems to have fixed the issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just FYI...the original error was:
Step 9/16 : FROM microsoft/dotnet:1.0.14-runtime
---> fdca09b2904f
Step 10/16 : RUN apt update && apt install curl --yes
---> Running in 055c0cf2b55b
WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.
Ign http://deb.debian.org jessie InRelease
Ign http://deb.debian.org jessie-updates InRelease
Get:1 http://deb.debian.org jessie Release.gpg [2420 B]
Ign http://deb.debian.org jessie-updates Release.gpg
Get:2 http://deb.debian.org jessie Release [148 kB]
Get:3 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://deb.debian.org jessie-updates Release
Get:4 http://deb.debian.org jessie/main amd64 Packages [9098 kB]
Err http://deb.debian.org jessie-updates/main amd64 Packages
Get:5 http://security.debian.org jessie/updates/main amd64 Packages [822 kB]
Err http://deb.debian.org jessie-updates/main amd64 Packages
Err http://deb.debian.org jessie-updates/main amd64 Packages
Err http://deb.debian.org jessie-updates/main amd64 Packages
Err http://deb.debian.org jessie-updates/main amd64 Packages
404 Not Found
Fetched 10.1 MB in 9s (1097 kB/s)
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c apt update && apt install curl --yes' returned a non-zero code: 100
@@ -16,7 +16,8 @@ FROM %DOTNETCORE_BASE_IMAGE% | |||
# a version of `curl` that has known issues. | |||
# We manually update it here so we can still depend on the original images. | |||
# This command should be removed once support for deprecated .NET core images is halted. | |||
RUN apt update && apt install curl --yes | |||
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list # Now archived | |||
RUN apt-get update && apt-get install curl --yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gpcastro Was there a reason behind not using apt-get
(like we usually do in other places) instead of apt
? I made the change to apt-get
as I was seeing the following warning, so just changed it:
WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.
No description provided.