forked from oVirt/ovirt-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from BrooklynDewolf/dockerfile
oVirt docker container
- Loading branch information
Showing
10 changed files
with
988 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Execute SQL commands | ||
psql -v ON_ERROR_STOP=1 --username "postgres" <<-EOSQL | ||
CREATE USER ovirt PASSWORD 'ovirt'; | ||
DROP DATABASE IF EXISTS engine; | ||
CREATE DATABASE engine OWNER ovirt TEMPLATE template0 ENCODING 'UTF8' lc_collate 'en_US.UTF-8' lc_ctype 'en_US.UTF-8'; | ||
EOSQL | ||
|
||
psql -v ON_ERROR_STOP=1 --username "postgres" -d engine <<-EOSQL | ||
CREATE EXTENSION "uuid-ossp"; | ||
EOSQL | ||
|
||
echo "oVirt PostgreSQL database has been setup!" |
Oops, something went wrong.