Skip to content

Commit

Permalink
Merge pull request #1 from BrooklynDewolf/dockerfile
Browse files Browse the repository at this point in the history
oVirt docker container
  • Loading branch information
BrooklynDewolf authored Mar 14, 2024
2 parents 421a6fd + 5da6bc5 commit 4fbcfa0
Show file tree
Hide file tree
Showing 10 changed files with 988 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .automation/init-db.sh
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!"
Loading

0 comments on commit 4fbcfa0

Please sign in to comment.