qvantel / orcd

An operational dashboard visualizing worldwide roaming usage and and product usage from generated fake CDR events
MIT License
8 stars 0 forks source link

Errors running containers.sh #16

Closed Lilja closed 7 years ago

Lilja commented 7 years ago
### Building backend container
Sending build context to Docker daemon 91.72 MB
Step 1 : FROM alpine:3.4
3.4: Pulling from library/alpine
b7f33cc0b48e: Pull complete 
Digest: sha256:a4104316f43c73146f1c0af4747d88047a808e58238bcad6506a7fbbf3b30b90
Status: Downloaded newer image for alpine:3.4
 ---> 0766572b4bac
Step 2 : ENV LANG C.UTF-8
 ---> Running in fce15d7dc7bd
 ---> d7624f784b3d
Removing intermediate container fce15d7dc7bd
Step 3 : RUN {  echo '#!/bin/sh';   echo 'set -e';  echo 'dirname "$(dirname "$(readlink -f "$(which javac || which java)")")"';    } > /usr/local/bin/docker-java-home     && chmod +x /usr/local/bin/docker-java-home
 ---> Running in b0245b5c5a26
 ---> d85fd5e65ade
Removing intermediate container b0245b5c5a26
Step 4 : ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk/jre
 ---> Running in 796f7cc865d2
 ---> daa6e904d172
Removing intermediate container 796f7cc865d2
Step 5 : ENV PATH $PATH:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin
 ---> Running in 76713759278a
 ---> f2c8160d3725
Removing intermediate container 76713759278a
Step 6 : ENV JAVA_VERSION 8u111
 ---> Running in 22a784a9a95c
 ---> 5b6d95446d66
Removing intermediate container 22a784a9a95c
Step 7 : ENV JAVA_ALPINE_VERSION 8.111.14-r0
 ---> Running in 86e1f028a476
 ---> 4b8f6f1c17d5
Removing intermediate container 86e1f028a476
Step 8 : RUN set -x     && apk add --no-cache       openjdk8-jre="$JAVA_ALPINE_VERSION"     && [ "$JAVA_HOME" = "$(docker-java-home)" ]
 ---> Running in 64b1c5b0e533
+ apk add --no-cache openjdk8-jre=8.111.14-r0
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz: temporary error (try again later)
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz: temporary error (try again later)
ERROR: unsatisfiable constraints:
  openjdk8-jre (missing):
    required by: world[openjdk8-jre=8.111.14-r0]
The command '/bin/sh -c set -x  && apk add --no-cache       openjdk8-jre="$JAVA_ALPINE_VERSION"     && [ "$JAVA_HOME" = "$(docker-java-home)" ]' returned a non-zero code: 1
### Starting backend container
Unable to find image 'backend:latest' locally
Pulling repository docker.io/library/backend
docker: Error: image library/backend:latest not found.
See 'docker run --help'.

% sudo apt install openjdk-8-jre

Building dependency tree       
Reading state information... Done
openjdk-8-jre is already the newest version (8u111-b14-2ubuntu0.16.04.2).
0 upgraded, 0 newly installed, 0 to remove and 79 not upgraded.
Max-Meldrum commented 7 years ago

The docker container cannot reach the "internet". You will have to run the telenor_wifi.sh script, the edit in /etc/resolv.conf gets reset everytime one connects to the wifi.

fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz: temporary error (try again later)

It fails to fetch the needed dependencies.