Skip to content

rhuss/docker-maven-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Maven Sample

This is a sample project for demonstrating the usage of rhuss/docker-maven-plugin

A Microservice

This project contains of a very simple Microservice, which accesses a Postgres database. The purpose of this micro service is to simply log every access in the database and return the list of all log entries. In addition, a simple integration test checks this behaviour. The database schema is created with Flyway.

This setup consist of two images:

  • The official PostgreSQL database postgres:9
  • An Image holding the Microservice. This image is created during the maven build and based on the official java:8u40 image.

Both containers from this image are docker linked together during the integration test.

Running the Example

The test can be startes with

$ mvn clean install

About

Sample project with a use case for rhuss/docker-maven-plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published