Create databases in a Postgres server.
Useful for testing with docker-compose.
This docker image is available as an automated build on the docker registry hub, so using it is as simple as running:
$ docker run hbpmip/create-databases:1.1.0
Run:
$ docker run -i -t --rm -e DB_HOST=`hostname` -v `pwd`/sql:/create-databases/sql hbpmip/create-databases:1.1.0
where the environment variables are:
- DB_HOST: [required] database host.
- DB_PORT: database port.
- DB_ADMIN_USER: [required] database admin user.
- DB_ADMIN_PASSWORD: [required] database admin password.
- DB[i]: name of the database to create, where i is a value from 0 to 9.
- USER[i]: database user.
- PASSWORD[i]: database password.
Run: ./build.sh
Run: ./publish.sh
(this project)
Copyright (C) 2017-2019 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
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.
Initial packaging done by suin suinyeze@gmail.com
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).