Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give unique image name #14

Closed
arey opened this issue Sep 23, 2020 · 10 comments · Fixed by #28
Closed

Give unique image name #14

arey opened this issue Sep 23, 2020 · 10 comments · Fixed by #28
Assignees
Labels
enhancement New feature or request

Comments

@arey
Copy link
Member

arey commented Sep 23, 2020

I would like to publish the docker images to the springcommunity organization: https://hub.docker.com/u/springcommunity. So people could test k8s deployment without building the docker images.
I didn't try but I suppose it will publish image without prefix (ie: springcommunity:vets-service)

To avoid naming conflict, could we add as prefix the name of the github project: spring-petclinic-cloud and a suffix with the k8s maven profile ? Thus we will have springcommunity:spring-petclinic-cloud-vets-service-k8s
What do you think about? Does docker image name and k8s service name are linked?

@arey arey added the enhancement New feature or request label Oct 13, 2020
@arey
Copy link
Member Author

arey commented Oct 13, 2020

@odedia what do you think about?

@odedia
Copy link
Contributor

odedia commented Oct 25, 2020

Not sure I’m following, do you currently have access to this repo on dockerhub?
Usually the part after the : is the version / tag.
So a better approach is something like
springcommunity/spring-petclinic-cloud-vets-service:k8sv1
Or something like that.

@arey
Copy link
Member Author

arey commented Nov 8, 2020

Yes, I've created the springcommunity organization on DockerHub. I've just added you as a member.
If neeeded, we could create another organization on DockerHub, Amazon ECR or whatever.
Your approach to concatenate the maven profile with the version could do the job. I see an issue: the latest tag could reference mix profiles: springcommunity/spring-petclinic-cloud-vets-service:k8sv1 and springcommunity/spring-petclinic-cloud-pets-service:cloudv1 (by the way, do we have to rename the cloud profile to tanzu?)

@odedia
Copy link
Contributor

odedia commented Nov 16, 2020 via email

@arey
Copy link
Member Author

arey commented Apr 28, 2021

Tools like Jib or the Spotify docker-maven-plugin used on spring-petclinic-cloud are automatically using the Maven version to tag the docker image. It's really practical.
See https://github.com/spring-petclinic/spring-framework-petclinic#publishing-a-docker-image and
image

We could move on to the more recent spring-boot:build-image goal based on buildpacks (see https://www.baeldung.com/spring-boot-docker-images).

Whatever the solution, we have to find a way to customize the version/tag.
I propose to use a dash: springcommunity/<service name>:<maven version>-<maven profile>
Exemple

  • springcommunity/spring-petclinic-cloud-vets-service:2.3.1-k8s
  • springcommunity/spring-petclinic-cloud-vets-service:2.3.1-tanzu

@patsevanton
Copy link
Contributor

I hope that will progress on this issue.

@arey
Copy link
Member Author

arey commented Sep 24, 2021

@patsevanton could you try docker pull springcommunity/spring-petclinic-cloud-discovery-service ?
See #28

@patsevanton
Copy link
Contributor

Yes. I can pull docker pull springcommunity/spring-petclinic-cloud-discovery-service

How can i help for this issue ?

@arey
Copy link
Member Author

arey commented Sep 30, 2021

@patsevanton could test to deploy the application into k8s with the image I've pushed into the springcommunity container repository?

@patsevanton
Copy link
Contributor

patsevanton commented Oct 1, 2021

Thanks for answer. Now testing spring-petclinic-cloud by skaffold. I will test later.

@arey arey closed this as completed in #28 Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants