Skip to content

Commit

Permalink
Set healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
johnf committed Apr 25, 2024
1 parent c58a409 commit d0dc4f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 34 deletions.
34 changes: 0 additions & 34 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,37 +79,3 @@ ENTRYPOINT ["/rails/bin/docker-entrypoint"]
# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
CMD ["./bin/rails", "server", "--log-to-stdout"]

# RUN mkdir -p /home/johnf/work/nabu; ln -s /app /home/johnf/work/nabu/nabu

# RUN cd /tmp \
# && curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
# && unzip -q awscliv2.zip \
# && ./aws/install \
# && rm -rf /tmp/awscliv2.zip /tmp/aws \
# && curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb" \
# && dpkg -i session-manager-plugin.deb
# Stuff we might need
# net-tools \
# ruby-kgio \
# git-core \
# curl \
# zlib1g-dev \
# build-essential \
# libssl-dev \
# libreadline-dev \
# libsqlite3-dev \
# sqlite3 \
# libxml2-dev \
# libxslt1-dev \
# software-properties-common \
# libffi-dev \
# nodejs \
# openjdk-17-jre \
# wget \
# npm


# Chrome for headless testing
# RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
# RUN apt-get -y install ./google-chrome-stable_current_amd64.deb
3 changes: 3 additions & 0 deletions cdk/lib/app-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,9 @@ export class AppStack extends cdk.Stack {
vpc,
protocol: elbv2.ApplicationProtocol.HTTP,
deregistrationDelay: cdk.Duration.seconds(30),
healthCheck: {
path: '/up',
},
},
);

Expand Down

0 comments on commit d0dc4f6

Please sign in to comment.