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:
30
scripts/postgres-app-entrypoint.sh
Executable file
30
scripts/postgres-app-entrypoint.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "=========================================="
|
||||
echo "PostgreSQL App - Inicialización"
|
||||
echo "=========================================="
|
||||
|
||||
# Este script es ejecutado por docker-entrypoint-initdb.d
|
||||
# PostgreSQL ya está iniciado por el contenedor padre
|
||||
|
||||
echo "✓ PostgreSQL está listo (iniciado por contenedor)"
|
||||
|
||||
# La base de datos anexo76_core ya está creada por POSTGRES_DB
|
||||
echo "✓ Base de datos 'anexo76_core' ya configurada"
|
||||
|
||||
# Crear extensiones y esquemas
|
||||
echo "Creando extensiones y esquemas..."
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
||||
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
||||
CREATE EXTENSION IF NOT EXISTS "pg_trgm";
|
||||
CREATE SCHEMA IF NOT EXISTS a76;
|
||||
CREATE SCHEMA IF NOT EXISTS a22;
|
||||
CREATE SCHEMA IF NOT EXISTS a24;
|
||||
CREATE SCHEMA IF NOT EXISTS a31;
|
||||
EOSQL
|
||||
|
||||
echo "✓ Extensiones y esquemas creados correctamente"
|
||||
echo "=========================================="
|
||||
echo "PostgreSQL App - Inicialización completada"
|
||||
echo "=========================================="
|
||||
Reference in New Issue
Block a user