Sign inSign up

cantara/microservice-baseline

By cantara

•Updated about 5 years ago

A typical simple baseline for building good microservices

Image
1

798

cantara/microservice-baseline repository overview

⁠Running the Docker container

⁠How it works

  • The configuration override of the application is volume mounted when running the Docker image

⁠Prerequisites

⁠Set up

⁠Initial install
⁠Building config

Create a configuration file, e.g. config_override.properties.

⁠Creating Docker-instance
  • Make sure the config file exists
  • Skip --restart=always if doing this locally to avoid it to start with your computer.

Connecting to instance for debugging:

docker exec -it -u microservice-baseline microservice-baseline bash

⁠Testing docker locally

See test-docker.sh⁠.

This script can be run with ./test-docker.sh local to also run mvn package and use jar from development.

⁠Quickly verify the image
wget http://localhost:8086/microservice-baseline/health

Tag summary

Content type

Image

Digest

Size

200.5 MB

Last updated

about 5 years ago

docker pull cantara/microservice-baseline