Skip to content

Latest commit

 

History

History
77 lines (45 loc) · 1.85 KB

README.md

File metadata and controls

77 lines (45 loc) · 1.85 KB

Implementation of Microservice architecture

Docker Image

Download the docker image from here: darkdefender27/learner-service

Empezar

Clone the remote repository into a local directory.

$ git clone https://github.com/darkdefender27/Learner Learner
$ cd Learner/

Prerequisites

Execution (using docker-compose)

$ docker-compose up

Execution

Build a docker image for the application

$ pwd
~/.../Learner

$ docker build -t microservice/learner-service .
Successfully built 499361c96a65

Running the application container

$ docker images

REPOSITORY                         TAG                 IMAGE ID            CREATED             SIZE
microservice/learner-service   latest              499361c96a65        6 minutes ago       678.5 MB

$ docker run -P -d --name learner-service --link mongodb microservice/learner-service
$ docker ps

CONTAINER ID        IMAGE                              COMMAND                  CREATED             STATUS              PORTS                      NAMES
71519d8ab576        microservice/learner-service   "java -Dspring.data.m"   4 seconds ago       Up 3 seconds        0.0.0.0:32769->8080/tcp    learner-service

Like It?

You can say thanks!

Contribution

  • Never edit the master branch.
  • Make a branch specific to the feature you wish to contribute on.
  • Send me a pull request.

License

GNU GPL Version 3, 29 June 2007. Please refer this link [GNU GPL 3.0 License] (http://www.gnu.org/licenses/gpl-3.0.txt) for detailed description.

Free Software, Hell Yeah! 👊