{"id":20911065,"url":"https://github.com/lren-chuv/sample-data-db-setup","last_synced_at":"2026-05-01T17:33:45.690Z","repository":{"id":144914599,"uuid":"97628999","full_name":"LREN-CHUV/sample-data-db-setup","owner":"LREN-CHUV","description":"Create a set of tables containing sample data in a database","archived":false,"fork":false,"pushed_at":"2019-05-17T09:06:33.000Z","size":1037,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-03T15:46:11.957Z","etag":null,"topics":["database-migrations","docker-image","reference-data"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LREN-CHUV.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-18T18:07:19.000Z","updated_at":"2019-05-17T09:06:34.000Z","dependencies_parsed_at":"2023-07-22T16:15:09.484Z","dependency_job_id":null,"html_url":"https://github.com/LREN-CHUV/sample-data-db-setup","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/LREN-CHUV/sample-data-db-setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LREN-CHUV%2Fsample-data-db-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LREN-CHUV%2Fsample-data-db-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LREN-CHUV%2Fsample-data-db-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LREN-CHUV%2Fsample-data-db-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LREN-CHUV","download_url":"https://codeload.github.com/LREN-CHUV/sample-data-db-setup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LREN-CHUV%2Fsample-data-db-setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32507087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database-migrations","docker-image","reference-data"],"created_at":"2024-11-18T14:19:07.637Z","updated_at":"2026-05-01T17:33:45.662Z","avatar_url":"https://github.com/LREN-CHUV.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"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/sample-data-db-setup/blob/master/LICENSE) [![DockerHub](https://img.shields.io/badge/docker-hbpmip%2Fdata--db--setup-008bb8.svg)](https://hub.docker.com/r/hbpmip/sample-data-db-setup/) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/bb61058330e04b8196e4f991abcfbba4)](https://www.codacy.com/app/hbp-mip/sample-data-db-setup?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=LREN-CHUV/sample-data-db-setup\u0026amp;utm_campaign=Badge_Grade)\n[![CircleCI](https://circleci.com/gh/LREN-CHUV/sample-data-db-setup.svg?style=svg)](https://circleci.com/gh/LREN-CHUV/sample-data-db-setup)\n\n\n# Sample database setup\n\nSetup a database with one table containing sample data.\n\n## How to build the Docker image\n\nRun: `./build.sh`\n\n# Setup for database 'sample-data-db' with the selection of variables for sample\n\n## Introduction\n\nThis Docker image uses Flyway to manage the database migration scripts for the 'sample-data-db' database used by MIP.\n\nThis database contains the data used for testing and debugging purposes.\n\n## Usage\n\nRun:\n\n```console\n$ docker run -i -t --rm -e FLYWAY_HOST=`hostname` hbpmip/sample-data-db-setup:0.7.1 migrate\n```\n\nwhere the environment variables are:\n\n* FLYWAY_HOST: database host, default to 'db'.\n* FLYWAY_PORT: database port, default to 5432.\n* FLYWAY_DATABASE_NAME: name of the database or schema, default to 'data'\n* FLYWAY_URL: JDBC url to the database, constructed by default from FLYWAY_DBMS, FLYWAY_HOST, FLYWAY_PORT and FLYWAY_DATABASE_NAME\n* FLYWAY_DRIVER: Fully qualified classname of the jdbc driver (autodetected by default based on flyway.url)\n* FLYWAY_USER: database user, default to 'data'.\n* FLYWAY_PASSWORD: database password, default to 'data'.\n* FLYWAY_SCHEMAS: Optional, comma-separated list of schemas managed by Flyway\n* FLYWAY_TABLE: Optional, name of Flyway's metadata table (default: schema_version)\n\nAfter execution, you should have:\n\n* A table named **SAMPLE_DATA** containing the values of dataset linreg_sample coming from file linreg_sample.csv\n* A table named **CHURN** containing the values of dataset churn coming from file churn.csv\n* A table named **IRIS** containing the values of dataset iris coming from file iris.csv\n* A table named **SAMPLE_DATA** containing the values of dataset linreg_sample coming from file linreg_sample.csv\n* A table named **cde_features_A** containing the values of datasets desd-synthdata coming from file desd-synthdata.csv\n* A table named **cde_features_B** containing the values of datasets nida-synthdata coming from file nida-synthdata.csv\n* A table named **cde_features_C** containing the values of datasets qqni-synthdata coming from file qqni-synthdata.csv\n* A table named **mip_cde_features** containing the values of datasets desd-synthdata, nida-synthdata, qqni-synthdata coming from file desd-synthdata.csv, nida-synthdata.csv and qqni-synthdata.csv respectively\n\n## Build\n\nRun: `./build.sh`\n\n## Publish on Docker Hub\n\nRun: `./publish.sh`\n\n## Contents of dataset linreg_sample.csv\n\nDataset generated from https://richarddmorey.shinyapps.io/test/solve.Rmd using ID number 2049324 and secret 's3Cr34'\n\nFirst perform the linear regression analysis with only score.math.course1 as the independent variable, then perform the linear regression analysis with both high school math courses as predictors.\n\n```\n\nSolution\nterm \testimate \tstd.error \tstatistic \tp.value\n(Intercept) \t1.1577 \t1.7023 \t0.6801 \t0.4975\nscore.math.course1 \t1.0253 \t0.0288 \t35.5961 \t0.0000\n\nReport (p) values for both slopes.\nSolution\nterm \testimate \tstd.error \tstatistic \tp.value\n(Intercept) \t-2.2264 \t2.0310 \t-1.0962 \t0.2748\nscore.math.course1 \t0.2020 \t0.2856 \t0.7072 \t0.4806\nscore.math.course2 \t0.8098 \t0.2796 \t2.8964 \t0.0044\n\nReport (R^2) and adjusted (R^2).\nSolution\n\tDependent variable:\n\n\tcollege.math\nscore.math.course1 \t0.202\n\t(0.286)\n\nscore.math.course2 \t0.810***\n\t(0.280)\n\nConstant \t-2.226\n\t(2.031)\n\nObservations \t150\nR2 \t0.901\nAdjusted R2 \t0.900\nResidual Std. Error \t9.551 (df = 147)\nF Statistic \t669.368*** (df = 2; 147)\nNote: \tp\u003c0.1; p\u003c0.05; p\u003c0.01\n\n```\n\n## License\n\nCopyright (C) 2017 [LREN CHUV](https://www.unil.ch/lren/en/home.html)\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\n# Acknowledgements\n\nThis work has been funded by the European Union Seventh Framework Program (FP7/2007­2013) under grant agreement no. 604102 (HBP)\n\nThis work is part of SP8 of the Human Brain Project (SGA1).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flren-chuv%2Fsample-data-db-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flren-chuv%2Fsample-data-db-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flren-chuv%2Fsample-data-db-setup/lists"}