https://github.com/lren-chuv/mip-cde-meta-db-setup
Meta DB setup based on our selection of common variables (MIP CDE)
https://github.com/lren-chuv/mip-cde-meta-db-setup
database-migrations docker-image reference-data
Last synced: 7 months ago
JSON representation
Meta DB setup based on our selection of common variables (MIP CDE)
- Host: GitHub
- URL: https://github.com/lren-chuv/mip-cde-meta-db-setup
- Owner: LREN-CHUV
- License: apache-2.0
- Created: 2017-06-20T10:40:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-03-09T18:02:37.000Z (over 5 years ago)
- Last Synced: 2025-01-19T15:34:53.739Z (9 months ago)
- Topics: database-migrations, docker-image, reference-data
- Language: Shell
- Size: 103 KB
- Stars: 0
- Watchers: 5
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.unil.ch/lren/en/home.html) [](https://github.com/LREN-CHUV/mip-cde-meta-db-setup/blob/master/LICENSE) [](https://www.codacy.com/app/hbp-mip/mip-cde-meta-db-setup?utm_source=github.com&utm_medium=referral&utm_content=LREN-CHUV/mip-cde-meta-db-setup&utm_campaign=Badge_Grade) [](https://circleci.com/gh/HBPMedical/mip-cde-meta-db-setup)
# Setup for database 'meta-db' with the selection of variables for mip-cde
## 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 used for reference, including:
* the list of variables and groups for the Common Data Elements (CDE) defined by MIP, under alias `mip-cde`.
## Usage
Run:
```console
$ docker run -i -t --rm -e FLYWAY_HOST=`hostname` hbpmip/mip-cde-meta-db-setup:1.3.5 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
### mip-cde-meta-db-setup
(this project)
Copyright (C) 2017 [LREN CHUV](https://www.unil.ch/lren/en/home.html)
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 athttp://www.apache.org/licenses/LICENSE-2.0
### Flyway
Copyright (C) 2016-2017 [Boxfuse GmbH](https://boxfuse.com)
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 athttp://www.apache.org/licenses/LICENSE-2.0
## Trademark
Flyway is a registered trademark of [Boxfuse GmbH](https://boxfuse.com).# Acknowledgements
This work has been funded by the European Union Seventh Framework Program (FP7/20072013) under grant agreement no. 604102 (HBP)
This work is part of SP8 of the Human Brain Project (SGA1).