{"id":20911085,"url":"https://github.com/lren-chuv/docker-create-databases","last_synced_at":"2026-04-19T15:01:31.496Z","repository":{"id":144914398,"uuid":"93038188","full_name":"LREN-CHUV/docker-create-databases","owner":"LREN-CHUV","description":"Create databases in a Postgres server. Useful for testing with docker-compose.","archived":false,"fork":false,"pushed_at":"2019-05-20T14:33:43.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-22T05:46:34.514Z","etag":null,"topics":["docker-image","infrastructure","testing"],"latest_commit_sha":null,"homepage":null,"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-06-01T09:05:33.000Z","updated_at":"2019-05-20T14:33:45.000Z","dependencies_parsed_at":"2023-07-22T16:15:33.947Z","dependency_job_id":null,"html_url":"https://github.com/LREN-CHUV/docker-create-databases","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/LREN-CHUV/docker-create-databases","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LREN-CHUV%2Fdocker-create-databases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LREN-CHUV%2Fdocker-create-databases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LREN-CHUV%2Fdocker-create-databases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LREN-CHUV%2Fdocker-create-databases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LREN-CHUV","download_url":"https://codeload.github.com/LREN-CHUV/docker-create-databases/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LREN-CHUV%2Fdocker-create-databases/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32010957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["docker-image","infrastructure","testing"],"created_at":"2024-11-18T14:19:11.530Z","updated_at":"2026-04-19T15:01:31.451Z","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/docker-create-databases/blob/master/LICENSE) [![DockerHub](https://img.shields.io/badge/docker-hbpmip%2Fcreate--databases-008bb8.svg)](https://hub.docker.com/r/hbpmip/create-databases/) [![ImageVersion](https://images.microbadger.com/badges/version/hbpmip/create-databases.svg)](https://hub.docker.com/r/hbpmip/create-databases/tags \"hbpmip/create-databases image tags\") [![ImageLayers](https://images.microbadger.com/badges/image/hbpmip/create-databases.svg)](https://microbadger.com/#/images/hbpmip/create-databases \"hbpmip/create-databases on microbadger\") [![Codacy Badge](https://api.codacy.com/project/badge/Grade/14600d91ae4244e3b8ce1d659be66e52)](https://www.codacy.com/app/hbp-mip/docker-create-databases?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=LREN-CHUV/docker-create-databases\u0026amp;utm_campaign=Badge_Grade) [![CircleCI](https://circleci.com/gh/LREN-CHUV/docker-create-databases/tree/master.svg?style=svg)](https://circleci.com/gh/LREN-CHUV/docker-create-databases/tree/master)\n\n\n# docker-create-databases\n\nCreate databases in a Postgres server.\n\nUseful for testing with docker-compose.\n\n## Install\n\nThis docker image is available as an automated build on [the docker registry hub](https://registry.hub.docker.com/u/hbpmip/create-databases/), so using it is as simple as running:\n\n\n```console\n$ docker run hbpmip/create-databases:1.1.0\n```\n\n## Usage\n\nRun:\n```console\n$ docker run -i -t --rm -e DB_HOST=`hostname` -v `pwd`/sql:/create-databases/sql hbpmip/create-databases:1.1.0\n```\n\nwhere the environment variables are:\n\n* DB_HOST: [required] database host.\n* DB_PORT: database port.\n* DB_ADMIN_USER: [required] database admin user.\n* DB_ADMIN_PASSWORD: [required] database admin password.\n* DB[i]: name of the database to create, where i is a value from 0 to 9.\n* USER[i]: database user.\n* PASSWORD[i]: database password.\n\n## Build\n\nRun: `./build.sh`\n\n## Publish on Docker Hub\n\nRun: `./publish.sh`\n\n## License\n\n### Docker packaging\n\n(this project)\n\nCopyright (C) 2017-2019 [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\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\nInitial packaging done by suin \u003csuinyeze@gmail.com\u003e\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%2Fdocker-create-databases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flren-chuv%2Fdocker-create-databases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flren-chuv%2Fdocker-create-databases/lists"}