Skip to content

Commit

Permalink
added exit 1 to the end of the healthcheck again & added env variable…
Browse files Browse the repository at this point in the history
…s and pip packages
  • Loading branch information
jcoffi authored Feb 13, 2023
1 parent ffdc564 commit e1e243c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docker/anywhere-tailscale/buildfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ ENV __MODIN_AUTOIMPORT_PANDAS__=1 \
RAY_IGNORE_UNHANDLED_ERRORS=1 \
RAY_ADDRESS="nexus.chimp-beta.ts.net:6379" \
RAY_CLIENT_RECONNECT_GRACE_PERIOD=60 \
RAY_memory_monitor_refresh_ms=0 \
RAY_record_ref_creation_sites=1 \
TZ=America/Los_Angeles \
NODETYPE=edge \
TSKEY="" \
Expand All @@ -18,7 +20,7 @@ ENV __MODIN_AUTOIMPORT_PANDAS__=1 \
CRATE_HEAP_DUMP_PATH="/data/crate/data" \
CRATE_JAVA_OPTS="-XX:+IgnoreUnrecognizedVMOptions -XX:+UseContainerSupport -XX:+IdleTuningCompactOnIdle -XX:+IdleTuningGcOnIdle -Xtune:virtualized -Des.cgroups.hierarchy.override=/ $CRATE_JAVA_OPTS" \
PATH=/crate/bin/:$PATH \
CRATE_HEAP_SIZE=5G \
CRATE_HEAP_SIZE="5G" \
IPv6=false \
DISABLE_IPV6=true \
CRATE_HOME=/crate/bin/ \
Expand All @@ -36,6 +38,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \

RUN $HOME/anaconda3/bin/pip install -q --no-cache-dir -U pip \
pandas \
auto-sklearn \
pandas_datareader \
'dask==2022.2.0' \
modin[dask] \
modin[ray] \
Expand All @@ -46,7 +50,6 @@ RUN $HOME/anaconda3/bin/pip install -q --no-cache-dir -U pip \
numpy \
datetime \
icecream \
crate \
geojson \
sqlalchemy \
crate[sqlalchemy] \
Expand Down Expand Up @@ -114,5 +117,5 @@ RUN curl -fSL -O "https://raw.githubusercontent.com/jcoffi/cluster-anywhere/mast

ENTRYPOINT ["/bin/bash", "/home/ray/startup.sh"]
HEALTHCHECK --interval=60s --timeout=15s --start-period=300s \
CMD curl -s localhost:4200 | jq -r '.ok' | grep -q true && ray list nodes -f NODE_NAME=$HOSTNAME.chimp-beta.ts.net -f STATE=ALIVE | grep -q ALIVE
CMD curl -s localhost:4200 | jq -r '.ok' | grep -q true && ray list nodes -f NODE_NAME=$HOSTNAME.chimp-beta.ts.net -f STATE=ALIVE | grep -q ALIVE || exit 1
#CMD sh /home/ray/run_tests.sh

0 comments on commit e1e243c

Please sign in to comment.