Public | Automated Build

Last pushed: 4 months ago
Short Description
Sys-Stack customer management service docker image
Full Description

sys-stack-serv-customer

Sys-Stack customer management service



Documentation

Microservice environment specific variables:

  • bootstrap.yml :
    • SPRING_APPLICATION_NAME
    • SPRING_PROFILES_ACTIVE
    • SPRING_CLOUD_CONFIG_URI
    • SPRING_CLOUD_CONFIG_USERNAME
    • SPRING_CLOUD_CONFIG_PASSWORD
    • SPRING_CLOUD_CONFIG_FAILFAST
    • SPRING_CLOUD_CONFIG_RETRY_INITIALINTERVAL
    • SPRING_CLOUD_CONFIG_RETRY_MULTIPLIER
    • SPRING_CLOUD_CONFIG_RETRY_MAXATTEMPTS
  • application.yml :

Environment variable example:

SPRING_APPLICATION_NAME=customer;SPRING_PROFILES_ACTIVE=dev;SPRING_CLOUD_CONFIG_URI=http://127.0.0.1:9999;SPRING_CLOUD_CONFIG_USERNAME=admin;SPRING_CLOUD_CONFIG_PASSWORD=q1w2e3r4T%;SPRING_CLOUD_CONFIG_FAILFAST=true;SPRING_CLOUD_CONFIG_RETRY_INITIALINTERVAL=1000;SPRING_CLOUD_CONFIG_RETRY_MULTIPLIER=1.1;SPRING_CLOUD_CONFIG_RETRY_MAXATTEMPTS=3

Maven build example:

mvn \
-DSPRING_APPLICATION_NAME=customer \
-DSPRING_PROFILES_ACTIVE=dev \
-DSPRING_CLOUD_CONFIG_URI=http://127.0.0.1:9999 \
-DSPRING_CLOUD_CONFIG_USERNAME=admin \
-DSPRING_CLOUD_CONFIG_PASSWORD=q1w2e3r4T% \
-DSPRING_CLOUD_CONFIG_FAILFAST=false \
-DSPRING_CLOUD_CONFIG_RETRY_INITIALINTERVAL=1000 \
-DSPRING_CLOUD_CONFIG_RETRY_MULTIPLIER=1.1 \
-DSPRING_CLOUD_CONFIG_RETRY_MAXATTEMPTS=3 \
clean package install

Docker setup

Project docker image is based on maven:3.5.0-jdk-8-alpine

Docker run command example:

docker run \
--name=SysStackServCustomer \
--net host \
-e SPRING_APPLICATION_NAME=customer \
-e SPRING_PROFILES_ACTIVE=dev \
-e SPRING_CLOUD_CONFIG_URI=http://192.168.0.4:9999 \
-e SPRING_CLOUD_CONFIG_USERNAME=admin \
-e SPRING_CLOUD_CONFIG_PASSWORD=q1w2e3r4T% \
-e SPRING_CLOUD_CONFIG_FAILFAST=true \
-e SPRING_CLOUD_CONFIG_RETRY_INITIALINTERVAL=1000 \
-e SPRING_CLOUD_CONFIG_RETRY_MULTIPLIER=1.1 \
-e SPRING_CLOUD_CONFIG_RETRY_MAXATTEMPTS=3 \
-it -p 5010:5010 \
gspanoae/sys-stack-serv-customer:latest \
/bin/bash

NOTE: Don't forget to clean out unused volumes:

docker volume ls
docker volume prune

or run with --rm for dev/testing

Docker Pull Command
Owner
gspanoae

Comments (0)