benwilcock / spring-cloud-gateway-demo

Code and articles to help folks get started with Spring Cloud Gateway.
https://benwilcock.github.io/spring-cloud-gateway-demo/
Apache License 2.0
184 stars 122 forks source link

error #4

Open Gondagar opened 4 years ago

Gondagar commented 4 years ago

how can I fix it?

:~/spring-cloud-gateway-demo/security-gateway$ docker-compose up Pulling uaa (scg-demo-uaa:latest)... ERROR: pull access denied for scg-demo-uaa, repository does not exist or may require 'docker login'

benwilcock commented 4 years ago

The docs point to running the build.sh script in the gateway folder first, so that your local Docker registry will contain the required images. https://github.com/benwilcock/spring-cloud-gateway-demo/blob/master/security-gateway/build.sh

dgempiuc commented 4 years ago

@benwilcock hey, the build process is not working correctly. because in uaa image step, there is a broken link (in step of getting war file from maven.) there is no "central.maven.org" url so you need to change link to "https://search.maven.org/remotecontent?filepath=org/cloudfoundry/identity/cloudfoundry-identity-uaa/4.30.0/cloudfoundry-identity-uaa-4.30.0.war".


(one more addition; i was getting below error message due to docker time issue. my time was behind 2 days from current. (If you are using Docker, a bug that causes time drift when the host computer goes to sleep https://askubuntu.com/a/1208252) i synchronized ntp and it's gone.

Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 1d 21h 16min 59s). Updates for this repository will not be applied.

dlehammer commented 4 years ago

@Gondagar I've created a PR for this :)