Unverified Commit 3b689c96 authored by William Tucker's avatar William Tucker Committed by GitHub
Browse files

Trying a different approach for building THREDDS

parent ad49c17a
Loading
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -49,10 +49,7 @@ COPY catalog-esgcet.xml ./content/thredds/esgcet/catalog.xml
# Run THREDDS until a successful startup to generate initial files
# This means that later we can run with a readonly root filesystem for security purposes
RUN catalina.sh start && \
    # Sleep for 5s to avoid connection refused errors (curl version is too old for --retry-connrefused)
    sleep 60 && \
    # Try to fetch the catalog every 5s for 5m before failing
    curl -fsSL -o /dev/null --retry 60 --retry-delay 5 --retry-max-time 300 http://127.0.0.1:8080/thredds/catalog/catalog.html && \
    catalina.sh stop && \
    # Remove any transient files that were created
    rm -f ./logs/catalina.{log,out} && \