Giter Site home page Giter Site logo

Comments (14)

dpicky avatar dpicky commented on June 8, 2024 6

Python needs adding to Dockerfile in order for it to build

RUN apk --update add python

from docker-alpine.

chriswessels avatar chriswessels commented on June 8, 2024 3

As an update, I've found that if you set the contents of the /etc/apk/repositories file to a list of mirrors, apk add is much more fault tolerant.

http://nl.alpinelinux.org/alpine/v3.1/main
http://nl.alpinelinux.org/alpine/v3.1/main
http://dl-2.alpinelinux.org/alpine/v3.1/main
http://dl-3.alpinelinux.org/alpine/v3.1/main
http://dl-4.alpinelinux.org/alpine/v3.1/main
http://dl-5.alpinelinux.org/alpine/v3.1/main
http://mirror.yandex.ru/mirrors/alpine/v3.1/main
http://repos.lax-noc.com/alpine/v3.1/main
http://distrib-coffee.ipsl.jussieu.fr/pub/linux/alpine/alpine/v3.1/main

Then run apk update and apk add ...

from docker-alpine.

kalak451 avatar kalak451 commented on June 8, 2024

I'm currently seeing exactly this same problem running in VirtualBox on a Ubuntu 14.04 image (using vagrants ubutntu/trusty64 box)

from docker-alpine.

kalak451 avatar kalak451 commented on June 8, 2024

I tracked down the cause of the "Resource temporarily unavailable" errors to intermittent DNS errors. I pointed the vagrant box straight to google's DNS servers and now everything is fine.

from docker-alpine.

andyshinn avatar andyshinn commented on June 8, 2024

I think this might be an upstream issue with apk. I'm trying to find a good way to reproduce it so I can try and locate the bug.

from docker-alpine.

philm avatar philm commented on June 8, 2024

It looks like an issue with one of the mirrors. When using this image, the error pops up when http://dl-4.alpinelinux.org is called (set in

export MIRROR="http://dl-4.alpinelinux.org/alpine"
).

I discovered this when I switched over to https://github.com/mini-containers/base as the base image, which pulls from http://nl.alpinelinux.org.

from docker-alpine.

ifduyue avatar ifduyue commented on June 8, 2024

I'm seeing this, too. It's dns errors like @kalak451 said.
But, if there are errors, apk add should fail.

I've submitted an issue to the upstream issue tracker. http://bugs.alpinelinux.org/issues/4019

from docker-alpine.

andyshinn avatar andyshinn commented on June 8, 2024

It would likely be helpful to have steps for them to reproduce the issue outside of Docker. This would separate any dependency on Docker. I'm guessing that apk isn't failing correctly on bad DNS responses (which sometimes happen with the VirtualBox DNS proxy). But I haven't thought of a good way to reproduce this outside of Docker to eliminate that part of the chain for them.

from docker-alpine.

andyshinn avatar andyshinn commented on June 8, 2024

It looks like @ncopa might have fixed this in http://git.alpinelinux.org/cgit/apk-tools/commit/?id=944eae4b27d039608dd72b1d7b3ed015c20bdcc0 and http://git.alpinelinux.org/cgit/apk-tools/commit/?id=7e3f4c3d7996811a37393514d6f0eaacae7178e2. Can someone who was experiencing the issue try manually installing http://dl-4.alpinelinux.org/alpine/edge/main/x86_64/apk-tools-2.6.0_rc1-r1.apk first and see if the issue persists?

from docker-alpine.

chriswessels avatar chriswessels commented on June 8, 2024

I'm having the same problem. It's good that this has been fixed upstream (apk add emitting a failure code), but it's still not great to be pulling from a flaky mirror. Is there a way to switch the the pull location to http://nl.alpinelinux.org?

@andyshinn the apk link you reference is 404ing.

from docker-alpine.

ifduyue avatar ifduyue commented on June 8, 2024

I can confirm that upstream has fixed this problem. However, it doesn't work in an exit-on-error way, you've to wait for the apk add to finish. Better than nothing.

@chriswessels +1
@andyshinn please consider adding more mirrors to /etc/apk/repositories

from docker-alpine.

andyshinn avatar andyshinn commented on June 8, 2024

Can someone open a separate issue for more mirrors? I wasn't aware it would
do automatic fail over if one is down. Definitely something I'll test.
On Apr 29, 2015 8:51 PM, "Yue Du" [email protected] wrote:

I can confirm that upstream has fixed this problem. However, it doesn't
work in an exit-on-error way, you've to wait for the apk add to finish.
Better than nothing.

@chriswessels https://github.com/chriswessels +1
@andyshinn https://github.com/andyshinn please consider adding more
mirrors to /etc/apk/repositories


Reply to this email directly or view it on GitHub
#15 (comment)
.

from docker-alpine.

andyshinn avatar andyshinn commented on June 8, 2024

I just pushed new gliderlabs/alpine:edge image which has the latest apk-tools with the exit on error fixes. I`m going to close this issue as the fixes should be available upstream in 3.2. Re-open this issue if it is still not erroring properly during build.

I'll work on the separate issue of multiple repositories for fail over separately.

from docker-alpine.

Dannyad84 avatar Dannyad84 commented on June 8, 2024

Python needs adding to Dockerfile in order for it to build

RUN apk --update add python

THANK YOU!

from docker-alpine.

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.