aroz-dockerize icon indicating copy to clipboard operation
aroz-dockerize copied to clipboard

docker compose up and then failed

Open simzhangbest opened this issue 3 years ago • 4 comments

ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.13/main: temporary error (try again later) WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/main: No such file or directory ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.13/community: temporary error (try again later) WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/community: No such file or directory ERROR: unable to select packages: git (no such package): required by: world[git] ERROR: Service 'app' failed to build: The command '/bin/sh -c apk add git' returned a non-zero code: 1

simzhangbest avatar Apr 13 '21 06:04 simzhangbest

ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.13/main: temporary error (try again later)
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/main: No such file or directory
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.13/community: temporary error (try again later)
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/community: No such file or directory
ERROR: unable to select packages:
  git (no such package):
    required by: world[git]
ERROR: Service 'app' failed to build: The command '/bin/sh -c apk add git' returned a non-zero code: 1

I am also facing the same issue

CrazyCoder009 avatar Apr 15 '21 07:04 CrazyCoder009

It looks like alpine has a problem with docker engine dns, something like

FROM golang:buster
RUN apt update -y && apt install -y git
RUN git clone https://github.com/tobychui/arozos.git /arozos
WORKDIR /arozos/src
RUN git checkout v1.113
RUN go build
CMD /arozos/src/arozos -port 80

should get you through. However, at v1.113 aroz fails to start anyway, so probably don't give it a high expectation.

tianhaoz95 avatar Jul 07 '21 18:07 tianhaoz95

after tinkering a bit, it turns out that HEAD works fine for now:

FROM golang:buster

RUN apt -y update && apt -y install git

RUN git clone https://github.com/tobychui/arozos /arozos

WORKDIR /arozos/src

RUN go build

CMD ./arozos -port 80

tianhaoz95 avatar Jul 07 '21 20:07 tianhaoz95

Okay, Thanks for the update @tianhaoz95

CrazyCoder009 avatar Sep 03 '21 18:09 CrazyCoder009