Coder Social home page Coder Social logo

Comments (7)

patsevanton avatar patsevanton commented on July 24, 2024

Fix by #24

from spring-petclinic-cloud.

arey avatar arey commented on July 24, 2024

In DockerHub (but also on local desktop), we may have some name conflict between 2 repositories : spring-petclinic-cloud and spring-petclinic-microservices. See the issue #14 I propose to solve it. @patsevanton I'm pretty sure the one you are referencing come form the spring-petclinic-microservices repository.

from spring-petclinic-cloud.

arey avatar arey commented on July 24, 2024

@odedia docker-compose is using and image build the provided Dockerfile and the dockerize utility.

Yesterday, I've published into Docker Hub images build with the mvn spring-boot:build-image -Pk8s -DREPOSITORY_PREFIX=${REPOSITORY_PREFIX} && ./scripts/pushImages.sh command line (ie. Buildpacks) but they are not including dockerize and are not compatible with docker compose.
You may pull them: springcommunity/spring-petclinic-cloud-visits-service (I've added the spring-petclin-cloud prefix to avoid naming conflict)

I'm note sure that we still have to support docker compose (the spring-petclinic-microservices repo still does). Maybe it's confusing.

from spring-petclinic-cloud.

patsevanton avatar patsevanton commented on July 24, 2024

Test k8s and get error

Remove wavefron anywhere and run kubectl apply

kubectl apply -f init-namespace/01-namespace.yaml 
kubectl apply -f init-services/02-config-map.yaml 
kubectl apply -f init-services/03-role.yaml 
kubectl apply -f init-services/05-api-gateway-service.yaml 
kubectl apply -f init-services/06-customers-service-service.yaml 
kubectl apply -f init-services/07-vets-service-service.yaml 
kubectl apply -f init-services/08-visits-service-service.yaml 
kubectl apply -f api-gateway-deployment.yaml 

Error

  Type     Reason         Age               From               Message
  ----     ------         ----              ----               -------
  Normal   Scheduled      32s               default-scheduler  Successfully assigned spring-petclinic/api-gateway-78c649f4df-hb228 to ecse00500c17
  Warning  InspectFailed  4s (x4 over 31s)  kubelet            Failed to apply default image tag "${REPOSITORY_PREFIX}/api-gateway:latest": couldn't parse image reference "${REPOSITORY_PREFIX}/api-gateway:latest": invalid reference format: repository name must be lowercase
  Warning  Failed         4s (x4 over 31s)  kubelet            Error: InvalidImageName

from spring-petclinic-cloud.

odedia avatar odedia commented on July 24, 2024

Hi, please see the README:
https://github.com/spring-petclinic/spring-petclinic-cloud#deploying-the-application
If you don't want to use the script, you can manually replace all occurrences of ${REPOSITORY_PREFIX} with your docker registry endpoint

from spring-petclinic-cloud.

patsevanton avatar patsevanton commented on July 24, 2024

I am sorry. I see now https://github.com/spring-petclinic/spring-petclinic-cloud#deploying-the-application

I will try

export REPOSITORY_PREFIX=antonpatsev
mvn spring-boot:build-image -Pk8s -DREPOSITORY_PREFIX=${REPOSITORY_PREFIX} && ./scripts/pushImages.sh

P.S. Generated and added TOC #30

from spring-petclinic-cloud.

patsevanton avatar patsevanton commented on July 24, 2024

Build docker iamges in spring-petclinic-cloud and push custom docker registry

from spring-petclinic-cloud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.