Skip to content

Commit

Permalink
Included all the essential files to setup a Dev Container with Docker…
Browse files Browse the repository at this point in the history
… and included a guide DEVELOPMENT.adoc to setup dev environment easily

All the instructions on how to setup the Dev Container environment can be found in DEVELOPMENT.adoc

Co-authored-by: Jean-Louis Dupond <[email protected]>
Signed-off-by: Brooklyn Dewolf <[email protected]>
  • Loading branch information
2 people authored and sandrobonazzola committed Jun 6, 2024
1 parent 40a9a01 commit 5117ca2
Show file tree
Hide file tree
Showing 8 changed files with 991 additions and 0 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 5117ca2

Please sign in to comment.