-
Notifications
You must be signed in to change notification settings - Fork 103
added healthcheck in Dockerfile #1192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -3,7 +3,7 @@ FROM amazonlinux:2023 AS base | |||||||||
| ENV NODE_VERSION=24.4.0 | ||||||||||
|
|
||||||||||
| RUN yum update -y && \ | ||||||||||
| yum install -y tar xz openssl && \ | ||||||||||
| yum install -y tar xz openssl curl-minimal && \ | ||||||||||
| ARCH=$(uname -m) && \ | ||||||||||
| if [ "$ARCH" = "x86_64" ]; then NODE_ARCH="x64"; \ | ||||||||||
| elif [ "$ARCH" = "aarch64" ]; then NODE_ARCH="arm64"; \ | ||||||||||
|
|
@@ -21,18 +21,6 @@ ARG NEPTUNE_NOTEBOOK | |||||||||
| ENV NEPTUNE_NOTEBOOK=$NEPTUNE_NOTEBOOK | ||||||||||
| ENV HOME=/graph-explorer | ||||||||||
|
|
||||||||||
| # Conditionally set the following environment values using +/- variable expansion | ||||||||||
| # https://docs.docker.com/reference/dockerfile/#environment-replacement | ||||||||||
| # | ||||||||||
| # If NEPTUNE_NOTEBOOK value is set then | ||||||||||
| # - GRAPH_EXP_ENV_ROOT_FOLDER = /proxy/9250/explorer | ||||||||||
| # - PROXY_SERVER_HTTP_PORT = 9250 | ||||||||||
| # - LOG_STYLE = cloudwatch | ||||||||||
| # Else the values are the defaults | ||||||||||
| # - GRAPH_EXP_ENV_ROOT_FOLDER = /explorer | ||||||||||
| # - PROXY_SERVER_HTTP_PORT = 80 | ||||||||||
| # - LOG_STYLE = default | ||||||||||
|
|
||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please don't remove the documentation |
||||||||||
| ENV GRAPH_EXP_ENV_ROOT_FOLDER=${NEPTUNE_NOTEBOOK:+/proxy/9250/explorer} | ||||||||||
| ENV GRAPH_EXP_ENV_ROOT_FOLDER=${GRAPH_EXP_ENV_ROOT_FOLDER:-/explorer} | ||||||||||
|
|
||||||||||
|
|
@@ -57,4 +45,8 @@ RUN pnpm install && \ | |||||||||
| EXPOSE 443 | ||||||||||
| EXPOSE 80 | ||||||||||
| EXPOSE 9250 | ||||||||||
|
|
||||||||||
| HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ | ||||||||||
| CMD curl -f http://localhost:${PROXY_SERVER_HTTP_PORT}/ || exit 1 | ||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, it seems the server url may be a complicated endeavor. We have multiple possible endpoints:
|
||||||||||
|
|
||||||||||
| ENTRYPOINT ["./docker-entrypoint.sh"] | ||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to double check me on this, but I believe the amazonlinux:2023 image contains
curlalready.