File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ ADD entrypoint.sh /entrypoint.sh
50
50
ADD create_ca_cert.sh /create_ca_cert.sh
51
51
RUN chmod +x /create_ca_cert.sh /entrypoint.sh
52
52
53
+ # Add Liveliness Probe script for CoreWeave
54
+ RUN apk --no-cache add curl
55
+ ADD liveliness.sh /liveliness.sh
56
+ RUN chmod +x /liveliness.sh
57
+
53
58
# Clients should only use 3128, not anything else.
54
59
EXPOSE 3128
55
60
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ IFS=' , '
4
+
5
+ read -r -a repos <<< " $LIVELINESS_REPOS"
6
+
7
+ for i in " ${repos[@]} "
8
+ do
9
+ echo " repo $i liveliness check..."
10
+ response=$( curl --head -w ' %{http_code}' -o /dev/null -s -k -x http://127.0.0.1:3128 " $i " )
11
+ if [ " $response " -ne 200 ]; then
12
+ echo " failed curl for repo $i "
13
+ exit 1
14
+ fi
15
+ done
You can’t perform that action at this time.
0 commit comments