A Modern Java Pet Store
  • Introduction
  • About Cloudinary Labs
    • Introduction
  • Case Study: Cloudinary & Docker
    • About Docker
  • Shazam for Pets
    • Introduction
    • Dockerizing the Application
    • Deploying it with Kubernetes
    • The new UX with AI
  • Watson
    • Creating Visual Recognition Models with Cloudinary
Powered by GitBook
On this page
  1. Shazam for Pets

Dockerizing the Application

PreviousIntroductionNextDeploying it with Kubernetes

Last updated 7 years ago

I have found a nice recipe for Dockerizing the jPetStore app.

In short I created an account on docker.io — blumareks. I added my image of jpetstore to the repository there, so it can be referenced in the next steps.

Check my github repo for the details:

I have changed the files responsible for the push to the registry — docker-compose.yml After that I was able to build and run my docker image using Docker for Mac:

$ docker-compose build
$ docker-compose up -d

* to stop it and remove the images (rm) just write:

docker-compose stop  
docker-compose rm -f

When I tested that everything works I was ready to push the images to the Docker repository:

$ docker-compose push

And they are here:

Running my image on my local machine even in the cool Docker wasn’t the thing I wanted. I wanted to deploy it on the ☁️ and have it taken care of. So I learned that people are using Kubernetes for that. So I decided to do what is fashionable — the Silicon Valley way 🌁

https://github.com/blumareks/2018-petstore
https://cloud.docker.com/app/blumareks/repository/list