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 <jean-louis@dupond.be>
Signed-off-by: Brooklyn Dewolf <contact@brooklyn.gent>
  • Loading branch information
BrooklynDewolf and dupondje committed Mar 27, 2024
1 parent 421a6fd commit c2bbf57
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 c2bbf57

Please sign in to comment.