jpetstore-6 icon indicating copy to clipboard operation
jpetstore-6 copied to clipboard

Add Docker support

Open marcinkunert opened this issue 7 years ago • 5 comments

I would like to start the app as a Docker container. It would be nice if there was such possibility

marcinkunert avatar May 09 '18 09:05 marcinkunert

Could you explain an your image about supporting Docker?

kazuki43zoo avatar May 09 '18 15:05 kazuki43zoo

Sure. I'm now using this app as a base for teaching selenium tests on it. I have to have it running all the time on my server. To do this I have to download the git repository, build and run it. By default it uses port 8080 so I have to adjust it in pom.xml. If the server restarts (for some odd reason) I have to remember to start this app.

With a Docker container I could simply get an existing container with a prebuild app and run it by specifying which port I want to use. Docker would also handle the restart scenario.

marcinkunert avatar May 09 '18 15:05 marcinkunert

Thanks for your explanation! I will consider the Docker supporting when I have a time. We welcome an your contributing at any time :D

kazuki43zoo avatar May 09 '18 16:05 kazuki43zoo

Sure I could prepare the container build setup. The second step is to upload it to Docker Hub. It'a a free service as long as the container is publicly available. Are you willing to create a organization there and either add me as a team member or push the container by urself?

marcinkunert avatar May 09 '18 16:05 marcinkunert

@marcinkunert @kazuki43zoo I dockerized it and published it in the hub. Please check https://hub.docker.com/r/qainsights/jpetstore

QAInsights avatar Jul 09 '22 16:07 QAInsights