RichardKnop / go-oauth2-server

A standalone, specification-compliant, OAuth2 server written in Golang.
Mozilla Public License 2.0
2.12k stars 315 forks source link

Docker Compose up error #56

Open p000 opened 5 years ago

p000 commented 5 years ago

dcerr

Docker Compose -

docker compose up

Error

rjswitzer3 commented 5 years ago

I have encountered/replicated the same issue.

Docker Compose version: docker-compose version 1.23.2, build 1110ad01

docker-compose.yml: version: '3.6' services: oauth-mock: build: https://github.com/RichardKnop/go-oauth2-server.git

Command: docker-compose up

Error: go: extracting golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2 verifying github.com/coreos/etcd@v3.3.12+incompatible: checksum mismatch downloaded: h1:pAWNwdf7QiT1zfaWyqCtNZQWCLByQyA3JrSQyuYAqnQ= go.sum: h1:5k8nkcBSvltjOO5RLflnXevOJXndlKIMbvVnMTX+cUU= ERROR: Service 'oauth-mock' failed to build: The command '/bin/sh -c go install github.com/RichardKnop/go-oauth2-server' returned a non-zero code: 1

I have tried the following modifications to the Dockerfile without luck:

Any ideas?

UPDATE:

I would not qualify either of these as a solution, but rather a temporary fix.

mbaniasad commented 5 years ago

trying the above....

  1. renaming go.sum to deleted.go.sum did not work.
  2. deleting it also, didn't help didn't check on the checksum line by line updates