Giter VIP home page Giter VIP logo

gdm-docker's Introduction

Orchestrating Generic Data Module (GDM) and Liquibase with Docker

[email protected]

Purpose

  • Deployment of the Generic Data Module (GDM) with Docker
  • For versioning the data model an additional Docker container for Liquibase (http://liquibase.org) is set up
  • The GDM container runs in daemon mode
  • The Liquibase container will only run temporarily for database updates

Requirements

  • Unix operating system (because not yet tested on Windows machines)
  • latest Docker engine installation
  • MySQL or Postgres database accessible for the GDM

Usage

Installation

# build the Docker images, initiate the database with Liquibase and then start the GDM as daemon
   make install DB_HOST="<your db hostname or IP>" DB_USER="<db user>" DB_NAME="<db schema name>" GDM_NAME="<docker container name for GDM>" GDM_CONFIG_PATH="<path to GDM config dir>" CHANGELOGS="<liquibase local changelogs>"

Roll-out another GDM instance

# build the Docker images, initiate the database with Liquibase and then start the GDM as daemon
   make gdm-init DB_HOST="<your db hostname or IP>" DB_USER="<db user>" DB_NAME="<db schema name>" GDM_NAME="<docker container name for GDM>" GDM_PORT=<port for the GDM webapp> GDM_CONFIG_PATH="<path to GDM config dir>" CHANGELOGS="<liquibase local changelogs>"

Data model update

# run Liquibase to populate any changes of the data model
   make db-update DB_HOST="<your db hostname or IP>" DB_USER="<db user>" DB_NAME="<db schema name>" GDM_NAME="<docker container name for GDM>" GDM_PORT=<port for the webapp> CHANGELOGS="<liquibase local changelogs>"

Service Controlling

# Start the GDM service 
   make start GDM_NAME="<docker container name for GDM>" 

# Stop the GDM service 
   make stop GDM_NAME="<docker container name for GDM>" 

# Restart the GDM service 
   make restart GDM_NAME="<docker container name for GDM>" 

Uninstallation

(@TODO)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.