Code Monkey home page Code Monkey logo

Comments (9)

paulvanbladel avatar paulvanbladel commented on June 10, 2024 2

Removing the package source did the job.
FYI: I'm applying it here: https://github.com/paulvanbladel/aurelia-identityserver-aspnetcore/blob/master/BasicSetup/src/AureliaAspNetApp/Dockerfile
Many thanks Michael for the great support. Very much appreciated.
Cheers
paul.

from dotnet-docker.

paulvanbladel avatar paulvanbladel commented on June 10, 2024

Feels like it's related to:
moby/moby#23138

from dotnet-docker.

paulvanbladel avatar paulvanbladel commented on June 10, 2024

Simply doing apt-get update gives already trouble.

from dotnet-docker.

divinebovine avatar divinebovine commented on June 10, 2024

Node 5.x is no longer available, you can use 6.x now. See https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions

Also, if you want to use npm you'll need to apt-get install that too now.

from dotnet-docker.

paulvanbladel avatar paulvanbladel commented on June 10, 2024

@divinebovine thanks for the prompt reply but
can you please try following sequence:

from a (linux) host:
sudo docker run --rm -it microsoft/dotnet:1.0.0-preview1

in the container: apt-get update

from dotnet-docker.

MichaelSimons avatar MichaelSimons commented on June 10, 2024

@paulvanbladel, sorry for the issues you are encountering. The apt-get update issue is indeed related to the llvm feed being down. #49 should address this. In the meantime, you should be able to ignore the apt-get update issue from the broken feed.

apt-get update ; apt-get -y --no-install-recommends install \
    git \
    unzip

Alternatively you could remove the feed all together.

from dotnet-docker.

paulvanbladel avatar paulvanbladel commented on June 10, 2024

Thanks @MichaelSimons .
Hi snomis (right?), we met in an other live already i think :)
Not sure how to ignore the fact that apt-get update doesn't work?
I'm trying to create a container which should run an mvc app which needs both npm and nodejs.
When I add in the Dockerfile
RUN apt-get install -y npm
it fails because it needs a previous apt-get update, which stops the container creation process.
I probably need to wait unitl that llvm feed is up again?
cheers
paul.

from dotnet-docker.

MichaelSimons avatar MichaelSimons commented on June 10, 2024

@paulvanbladel - yes we did work together in the past! Nice to see you here.

You could ignore apt-get update if all you were doing is just installing npm.


FROM microsoft/dotnet:latest

RUN apt-get -qq update ; apt-get -qqy --no-install-recommends install \
    git \
    unzip

RUN apt-get install -y nodejs

That really won't do you any good since you need Node. The Node installer does an apt-get update, therefore if you want a workaround, you would have to remove the llvm package source.

FROM microsoft/dotnet:latest

RUN rm /etc/apt/sources.list.d/llvm.list
RUN apt-get -qq update && apt-get -qqy --no-install-recommends install \
    git \
    unzip

RUN curl -sL https://deb.nodesource.com/setup_5.x |  bash -
RUN apt-get install -y nodejs

...or as you mention, wait for the mentioned issue to get resolved.

from dotnet-docker.

paulvanbladel avatar paulvanbladel commented on June 10, 2024

Thanks Michael.

from dotnet-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.