Skip to content

Commit

Permalink
chore: add startup script with node-problem-detector
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc committed Jan 8, 2024
1 parent 507f898 commit 83dc2b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions cloudbuild/prod/pre-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ steps:
- --scopes=https://www.googleapis.com/auth/cloud-platform
- --tags=phoenix-http,https-server
- --metadata-from-file=shutdown-script=./cloudbuild/shutdown.sh
- --metadata-from-file=startup-script=./cloudbuild/startup.sh
- --container-image=${_CONTAINER_IMAGE}
- --container-privileged
- --container-restart-policy=always
Expand Down
1 change: 1 addition & 0 deletions cloudbuild/staging/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ steps:
- --tags=phoenix-http,https-server
- --container-image=${_CONTAINER_IMAGE}
- --metadata-from-file=shutdown-script=./cloudbuild/shutdown.sh
- --metadata-from-file=startup-script=./cloudbuild/startup.sh
- --container-privileged
- --container-restart-policy=always
- --container-env=LOGFLARE_GRPC_PORT=4001,LOGFLARE_MIN_CLUSTER_SIZE=1,OVERRIDE_MAGIC_COOKIE=${_COOKIE}
Expand Down
3 changes: 3 additions & 0 deletions cloudbuild/startup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

systemctl start node-problem-detector

0 comments on commit 83dc2b6

Please sign in to comment.