From 6abc086ba010cef570205ac2ad706a0179886480 Mon Sep 17 00:00:00 2001 From: holzi1005 Date: Sun, 8 Dec 2024 11:41:46 +0100 Subject: [PATCH] add ignore --- docker-compose.http.yml => .docker-compose.http.yml | 0 docker-compose.https.yml => .docker-compose.https.yml | 0 .gitignore | 8 ++++++++ keycloak/{realm-export.json => .realm-export.json} | 0 mysql-initdb/{init-userdb.sql => .init-userdb.sql} | 0 setup.sh | 2 ++ 6 files changed, 10 insertions(+) rename docker-compose.http.yml => .docker-compose.http.yml (100%) rename docker-compose.https.yml => .docker-compose.https.yml (100%) create mode 100644 .gitignore rename keycloak/{realm-export.json => .realm-export.json} (100%) rename mysql-initdb/{init-userdb.sql => .init-userdb.sql} (100%) diff --git a/docker-compose.http.yml b/.docker-compose.http.yml similarity index 100% rename from docker-compose.http.yml rename to .docker-compose.http.yml diff --git a/docker-compose.https.yml b/.docker-compose.https.yml similarity index 100% rename from docker-compose.https.yml rename to .docker-compose.https.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cc260b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +# Ignore Custom Keycloak Realm +keycloak/realm-export.json + +# Ignore Custom init-userdb +mysql-initdb/init-userdb.sql + +# Ignore Custom docker-compose +docker-compose.yml \ No newline at end of file diff --git a/keycloak/realm-export.json b/keycloak/.realm-export.json similarity index 100% rename from keycloak/realm-export.json rename to keycloak/.realm-export.json diff --git a/mysql-initdb/init-userdb.sql b/mysql-initdb/.init-userdb.sql similarity index 100% rename from mysql-initdb/init-userdb.sql rename to mysql-initdb/.init-userdb.sql diff --git a/setup.sh b/setup.sh index 5f0ae7d..88f23af 100644 --- a/setup.sh +++ b/setup.sh @@ -70,6 +70,7 @@ echo --- 1. Build the Keycloak ---------------------------------- echo ------------------------------------------------------------ echo "" +cp keycloak/.realm-export.json keycloak/realm-export.json sed -i "s||$OAUTH_KEYCLOAK_CLIENT_ID|g" keycloak/realm-export.json sed -i "s||$HTTP_METHOD://$PUBLIC_URL|g" keycloak/realm-export.json @@ -78,6 +79,7 @@ echo ------ 2. Build Mysql Init DB ------------------------------ echo ------------------------------------------------------------ echo "" +cp mysql-initdb/.init-userdb.sql mysql-initdb/init-userdb.sql sed -i "s||$ODC_DB_PW|g" mysql-initdb/init-userdb.sql sed -i "s||$KEYCLOAK_PW|g" mysql-initdb/init-userdb.sql