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 \