Skip to content

Commit

Permalink
Merge pull request #693 from ministryofjustice/DDLS-435b
Browse files Browse the repository at this point in the history
DDLS-435 change rds scaling to min 0
  • Loading branch information
jamesrwarren authored Jan 21, 2025
2 parents 88cdb3e + a1e43c0 commit 83048a0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion serve-web/docker/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ RUN apk update && apk upgrade
# Add Waitforit to wait on db starting
ENV WAITFORIT_VERSION="v2.4.1"

RUN wget -q -O /usr/local/bin/waitforit https://github.com/maxcnunes/waitforit/releases/download/$WAITFORIT_VERSION/waitforit-linux_amd64 \
RUN wget -q -O /usr/local/bin/waitforit https://github.com/maxclaus/waitforit/releases/download/$WAITFORIT_VERSION/waitforit-linux_amd64 \
&& chmod +x /usr/local/bin/waitforit

#COMPOSER
Expand Down
3 changes: 1 addition & 2 deletions serve-web/docker/waitforit/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM alpine

ENV WAITFORIT_VERSION="v2.4.1"
RUN wget -q -O /usr/local/bin/waitforit https://github.com/maxcnunes/waitforit/releases/download/$WAITFORIT_VERSION/waitforit-linux_amd64 \
RUN wget -q -O /usr/local/bin/waitforit https://github.com/maxclaus/waitforit/releases/download/$WAITFORIT_VERSION/waitforit-linux_amd64 \
&& chmod +x /usr/local/bin/waitforit
ENTRYPOINT ["/usr/local/bin/waitforit"]

2 changes: 1 addition & 1 deletion serve-web/docker/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN wget -q -O /usr/local/bin/confd "https://github.com/kelseyhightower/confd/re

# Add Waitforit to wait on app starting
ENV WAITFORIT_VERSION="v2.4.1"
RUN wget -q -O /usr/local/bin/waitforit https://github.com/maxcnunes/waitforit/releases/download/$WAITFORIT_VERSION/waitforit-linux_amd64 \
RUN wget -q -O /usr/local/bin/waitforit https://github.com/maxclaus/waitforit/releases/download/$WAITFORIT_VERSION/waitforit-linux_amd64 \
&& chmod +x /usr/local/bin/waitforit

WORKDIR /var/www
Expand Down
2 changes: 1 addition & 1 deletion terraform/environment/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ resource "aws_rds_cluster" "cluster_serverless" {
iam_database_authentication_enabled = false

serverlessv2_scaling_configuration {
min_capacity = 0.5
min_capacity = 0
max_capacity = 16
}
depends_on = [aws_cloudwatch_log_group.api_cluster]
Expand Down

0 comments on commit 83048a0

Please sign in to comment.