Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lren-chuv/woken-db-setup
Creation and control scripts for the Postgres database used to store analytics results in the MIP
https://github.com/lren-chuv/woken-db-setup
algorithm-factory database-migrations docker-image
Last synced: 27 days ago
JSON representation
Creation and control scripts for the Postgres database used to store analytics results in the MIP
- Host: GitHub
- URL: https://github.com/lren-chuv/woken-db-setup
- Owner: LREN-CHUV
- License: apache-2.0
- Created: 2015-11-18T11:02:01.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-05-10T14:50:07.000Z (almost 6 years ago)
- Last Synced: 2024-11-18T14:39:48.175Z (3 months ago)
- Topics: algorithm-factory, database-migrations, docker-image
- Language: Shell
- Homepage:
- Size: 48.8 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![CHUV](https://img.shields.io/badge/CHUV-LREN-AF4C64.svg)](https://www.unil.ch/lren/en/home.html) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/LREN-CHUV/woken-db-setup/blob/master/LICENSE)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/29986afe800443f191339ef4a742afa6)](https://www.codacy.com/app/hbp-mip/woken-db-setup?utm_source=github.com&utm_medium=referral&utm_content=HBPMedical/woken-db-setup&utm_campaign=Badge_Grade)
[![CircleCI](https://circleci.com/gh/LREN-CHUV/woken-db-setup.svg?style=svg)](https://circleci.com/gh/LREN-CHUV/woken-db-setup)# Setup for database 'woken-db'
## Introduction
This project uses Flyway to manage the database migration scripts for the 'woken-db' database used by Woken.
## Usage
Run:
```console
$ docker run -i -t --rm -e FLYWAY_DBMS=postgres -e FLYWAY_HOST=`hostname` hbpmip/woken-db-setup:1.3.3 migrate
```where the environment variables are:
* FLYWAY_DBMS: [required] Type of the database (oracle, postgres...).
* FLYWAY_HOST: [required] database host.
* FLYWAY_PORT: database port.
* FLYWAY_DATABASE_NAME: name of the database or schema
* 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.
* FLYWAY_PASSWORD: database password.
* FLYWAY_SCHEMAS: Comma-separated list of schemas managed by Flyway
* FLYWAY_TABLE: Name of Flyway's metadata table (default: schema_version)## Build
Run: `./build.sh`
## Publish on Docker Hub
Run: `./publish.sh`
## License
### Woken-db-setup
(this project)
Copyright (C) 2017-2019 [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
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.### 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).