From 3f817ab1586b3b8d973a338a5cfdf8cb548f33a7 Mon Sep 17 00:00:00 2001 From: yaansz Date: Wed, 28 Aug 2024 21:54:14 -0300 Subject: [PATCH] task: test --- .github/workflows/deploy-prod.yaml | 2 +- Dockerfile | 2 +- start-container.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-prod.yaml b/.github/workflows/deploy-prod.yaml index 1d83bd1..6d54336 100644 --- a/.github/workflows/deploy-prod.yaml +++ b/.github/workflows/deploy-prod.yaml @@ -69,4 +69,4 @@ jobs: key: ${{ secrets.VM_SSH_PRIVATE_KEY }} script: | cd /home/${{ secrets.SSH_USERNAME }}/capivara - DISCORD_TOKEN='${{ secrets.DISCORD_BOT_TOKEN }}' LOG_CHANNEL_ID='${{ secrets.DISCORD_LOG_CHANNEL_ID }}' CURUPIRA_RESET='true' DATABASE_DRIVER='org.postgresql.Driver' DATABASE_DIALECT='org.hibernate.dialect.PostgreSQL95Dialect' DATABASE_URL='jdbc:postgresql://host.containers.internal:5432/capivara' DATABASE_USERNAME='${{ secrets.DATABASE_USERNAME }}' DATABASE_PASSWORD='${{ secrets.DATABASE_PASSWORD }}' JAVA_ARGS='-Xmx250M' /bin/bash start-container.sh docker.io/eduardoferro/capivara:${{ github.sha }} + DISCORD_TOKEN='${{ secrets.DISCORD_BOT_TOKEN }}' LOG_CHANNEL_ID='${{ secrets.DISCORD_LOG_CHANNEL_ID }}' CURUPIRA_RESET='true' DATABASE_DRIVER='org.postgresql.Driver' DATABASE_DIALECT='org.hibernate.dialect.PostgreSQL95Dialect' DATABASE_URL='jdbc:postgresql://host.containers.internal:5432/capivara' DATABASE_USERNAME='${{ secrets.DATABASE_USERNAME }}' DATABASE_PASSWORD='${{ secrets.DATABASE_PASSWORD }}' JAVA_ARGS='-Xmx350M' /bin/bash start-container.sh docker.io/eduardoferro/capivara:${{ github.sha }} diff --git a/Dockerfile b/Dockerfile index 7c76d82..82b4c72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ FROM docker.io/eclipse-temurin:21-jre-alpine WORKDIR /app COPY --from=builder /app . -ENV JAVA_ARGS="-Xmx300M" +ENV JAVA_ARGS="-Xmx350M" ENV LOG_DIRECTORY="/app/logs" ENV SPRING_CONFIG_LOCATION="/app/main.properties" ENV DISCORD_TOKEN="invalid" diff --git a/start-container.sh b/start-container.sh index 7fccd2e..9debda8 100644 --- a/start-container.sh +++ b/start-container.sh @@ -37,7 +37,7 @@ podman run -d \ -e DATABASE_PASSWORD=${DATABASE_PASSWORD:-sa} \ -e JAVA_ARGS=${JAVA_ARGS:--Xmx200M} \ --cpus 0.5 \ - --memory 300M \ + --memory 400M \ --name $CONTAINER_NAME \ --restart always \ --network slirp4netns:allow_host_loopback=true \