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