This repository has been archived by the owner on Jun 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tested auto create database after container startup
- Loading branch information
Li Lin
committed
Jan 29, 2015
1 parent
3cb7005
commit e97c924
Showing
5 changed files
with
28 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
FROM postgres:9.3 | ||
MAINTAINER Li Lin <[email protected]> | ||
|
||
RUN mkdir -p /docker-entrypoint-initdb.d | ||
ADD atl-dbinit.sh /docker-entrypoint-initdb.d | ||
ADD dbinit.sh /docker-entrypoint-initdb.d/ | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
echo "******CREATING APPLICATIONS DATABASES ******" | ||
|
||
gosu postgres postgres --single <<- EOSQL | ||
CREATE DATABASE jira WITH ENCODING='UTF8' TEMPLATE=template0; | ||
CREATE DATABASE stash WITH ENCODING='UTF8' TEMPLATE=template0; | ||
CREATE DATABASE fisheye WITH ENCODING='UTF8' TEMPLATE=template0; | ||
CREATE DATABASE bamboo WITH ENCODING='UTF8' TEMPLATE=template0; | ||
EOSQL | ||
|
||
echo "******APPLICATION DATABASES CREATED******" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters