Unsatisfiable constraints building the appserver with docker-compose


#1

Hi,
being a go noob I followed the instructions to setup the build environment for appserver. The build does stop right after the beginning with unsatisfiable constraints. Did anyone see this before or knows how to solve this?

sudo docker-compose run --rm appserver bash
Starting loraappserver_postgres_1
Starting loraappserver_mosquitto_1 
Starting loraappserver_redis_1
Building appserver
Step 1/10 : FROM golang:1.11-alpine
---> 64ba145fa582
Step 2/10 : ENV PROJECT_PATH=/lora-app-server
---> Using cache
---> e6d60bfcc79f
Step 3/10 : ENV PATH=$PATH:$PROJECT_PATH/build
---> Using cache
---> 9d2ecbc68f2a
Step 4/10 : ENV CGO_ENABLED=0
---> Using cache
---> d68a355fc820
Step 5/10 : ENV GO_EXTRA_BUILD_ARGS="-a -installsuffix cgo"
---> Using cache
---> 7982c40d648e 
Step 6/10 : RUN apk add --no-cache ca-certificates make git bash protobuf protobuf-dev alpine-sdk nodejs nodejs-npm
---> Running in e89a989c6309
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz: temporary     error (try again later)
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz: temporary error (try again later)
ERROR: unsatisfiable constraints:
   alpine-sdk (missing):
required by: world[alpine-sdk]
 bash (missing):
required by: world[bash]
 git (missing):
required by: world[git]
 make (missing):
required by: world[make]
 nodejs (missing):
required by: world[nodejs]
 nodejs-npm (missing):
required by: world[nodejs-npm]
protobuf (missing):
required by: world[protobuf]
protobuf-dev (missing):
required by: world[protobuf-dev]
ERROR: Service 'appserver' failed to build: The command '/bin/sh -c apk add --no-cache ca-certificates make git bash protobuf protobuf-dev alpine-sdk nodejs nodejs-npm' returned a non-zero code: 8

#2

Found a solution: https://github.com/gliderlabs/docker-alpine/issues/279