Giter VIP home page Giter VIP logo

sample-meta-db-setup's Introduction

CHUV License Codacy Badge CircleCI

Setup for database 'meta-db' with the selection of variables for sample-data-db

Introduction

This Docker image uses Flyway to manage the database migration scripts for the 'meta-db' database used by MIP.

This database contains the metadata for sample data useful for testing and debugging purpose.

Usage

Run:

$ docker run -i -t --rm -e FLYWAY_HOST=`hostname` hbpmip/sample-meta-db-setup:0.7.1 migrate

where the environment variables are:

  • FLYWAY_HOST: database host, default to 'db'.
  • FLYWAY_PORT: database port, default to 5432.
  • FLYWAY_DATABASE_NAME: name of the database or schema, default to 'meta'
  • FLYWAY_URL: JDBC url to the database, constructed by default from FLYWAY_DBMS, FLYWAY_HOST, FLYWAY_PORT and FLYWAY_DATABASE_NAME
  • FLYWAY_DRIVER: Fully qualified classname of the jdbc driver (autodetected by default based on flyway.url)
  • FLYWAY_USER: database user, default to 'meta'.
  • FLYWAY_PASSWORD: database password, default to 'meta'.
  • FLYWAY_SCHEMAS: Optional, comma-separated list of schemas managed by Flyway
  • FLYWAY_TABLE: Optional, name of Flyway's metadata table (default: schema_version)

Build

Run: ./build.sh

Publish on Docker Hub

Run: ./publish.sh

License

sample-meta-db-setup

(this project)

Copyright (C) 2017 LREN CHUV

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Flyway

Copyright (C) 2016-2017 Boxfuse GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Trademark

Flyway is a registered trademark of Boxfuse GmbH.

Acknowledgements

This work has been funded by the European Union Seventh Framework Program (FP7/2007­2013) under grant agreement no. 604102 (HBP)

This work is part of SP8 of the Human Brain Project (SGA1).

sample-meta-db-setup's People

Contributors

ajutzeler avatar ludovicc avatar mirco-nasuti avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

hbpmedical

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.