Skip to content
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

Merged

Conversation

kichalla
Copy link
Contributor

No description provided.

@kichalla kichalla requested a review from a team as a code owner March 26, 2019 20:50
@@ -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
Copy link
Contributor Author

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

Copy link
Contributor Author

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
Copy link
Contributor Author

@kichalla kichalla Mar 26, 2019

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.

@kichalla kichalla merged commit d390b67 into master Mar 26, 2019
@kichalla kichalla deleted the kichalla/disable.building.dotnetcore.runtime.images branch April 1, 2019 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants