feat: Add frontend and backend initialization scripts, implement Keycloak and PostgreSQL setup
- Implemented SvelteKit frontend with authentication callback handling. - Created demo routes and paraglide localization functionality. - Added health check and entrypoint scripts for backend services. - Established PostgreSQL and Keycloak initialization scripts with health checks. - Introduced models for database schema using SQLAlchemy. - Configured Vite and SvelteKit for development and testing environments. - Added health check script to verify service statuses and resource usage. - Created Docker entrypoint scripts for seamless service startup.
This commit is contained in:
14
scripts/postgres-keycloak-entrypoint.sh
Executable file
14
scripts/postgres-keycloak-entrypoint.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Este script se ejecuta automáticamente en la primera inicialización de PostgreSQL
|
||||
# cuando se coloca en /docker-entrypoint-initdb.d/
|
||||
|
||||
echo "Inicializando base de datos keycloak..."
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
|
||||
-- Verificar que la base de datos existe
|
||||
SELECT 'Base de datos keycloak lista' AS status;
|
||||
EOSQL
|
||||
|
||||
echo "✓ Base de datos keycloak inicializada correctamente"
|
||||
Reference in New Issue
Block a user