Compare commits

..

10 Commits

Author SHA1 Message Date
ebeb4574ad Merge pull request 'd' (#23) from develop into main
All checks were successful
Personal/recall/pipeline/head This commit looks good
Reviewed-on: #23
2026-03-27 13:56:05 +00:00
7fce46bff2 d 2026-03-27 10:55:43 -03:00
9380273cba Merge pull request 'j' (#22) from develop into main
Reviewed-on: #22
2026-03-27 13:52:14 +00:00
d398226723 j 2026-03-27 10:09:44 -03:00
e225f2ec2c Merge pull request 'develop' (#21) from develop into main
All checks were successful
Personal/recall/pipeline/head This commit looks good
Reviewed-on: #21
2026-03-25 02:08:04 +00:00
85bbe7b61f fix: Increase memory limit to 512MB for Prisma db push 2026-03-24 23:07:10 -03:00
de1de1d3bc fix: Run prisma db push but continue if OOM and DB exists 2026-03-24 23:04:26 -03:00
ef8a7858b2 fix: Only run prisma db push if database doesn't exist to avoid OOM 2026-03-24 23:02:14 -03:00
11615ee4cb Merge pull request 'fix: Make entrypoint more robust to handle volume permission issues' (#20) from develop into main
Reviewed-on: #20
2026-03-24 18:22:31 +00:00
dc5089c011 fix: Make entrypoint more robust to handle volume permission issues 2026-03-24 15:19:21 -03:00
4 changed files with 19 additions and 5 deletions

View File

@@ -61,3 +61,4 @@ ENV DATABASE_URL="file:/app/data/dev.db"
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["node", "server.js"] CMD ["node", "server.js"]

4
Jenkinsfile vendored
View File

@@ -90,8 +90,8 @@ services:
- ./data:/app/data - ./data:/app/data
networks: networks:
- homelab-net - homelab-net
mem_limit: 32m mem_limit: 512m
mem_reservation: 16m mem_reservation: 256m
restart: unless-stopped restart: unless-stopped
networks: networks:
homelab-net: homelab-net:

View File

@@ -248,3 +248,7 @@ src/
└── types/ └── types/
└── note.ts └── note.ts
``` ```
nueva prueba

View File

@@ -3,14 +3,23 @@ set -e
cd /app cd /app
# Initialize database if it doesn't exist or schema changed
echo "Checking database..." echo "Checking database..."
# Ensure data directory exists with proper permissions # Ensure data directory exists with proper permissions
mkdir -p /app/data mkdir -p /app/data
chmod 777 /app/data
# Use local prisma version from node_modules (skip generate - already built) # Run db push (creates/updates database schema)
./node_modules/prisma/build/index.js db push --skip-generate # If it fails due to OOM but DB exists, continue anyway
./node_modules/prisma/build/index.js db push --skip-generate || {
exit_code=$?
if [ -f /app/data/dev.db ]; then
echo "db push failed (code $exit_code) but database exists, continuing..."
else
echo "db push failed and database does not exist"
exit $exit_code
fi
}
echo "Starting application..." echo "Starting application..."
exec "$@" exec "$@"