chore: convert all CHECKS files to healthchecks

This commit is contained in:
Jose Diaz-Gonzalez
2023-10-15 00:22:24 -04:00
parent 678757d55f
commit a89b8d6213
46 changed files with 364 additions and 134 deletions

View File

@@ -1,5 +0,0 @@
WAIT=2 # wait 2 seconds
TIMEOUT=5 # set timeout to 5 seconds
ATTEMPTS=2 # try 2 times
/ nodejs/express

View File

@@ -1,20 +1,14 @@
{
"name": "Sample node.js express app",
"description": "Used in dokku's test suite",
"keywords": [
"nodejs",
"express",
"testing"
"addons": [
"dokku-postgres",
"dokku-redis"
],
"website": "https://dokku.com/docs/",
"repository": "https://github.com/dokku/dokku",
"logo": "https://raw.githubusercontent.com/dokku/dokku/master/docs/assets/dokku.png",
"scripts": {
"dokku": {
"predeploy": "touch /app/predeploy.test",
"postdeploy": "touch /app/postdeploy.test"
"buildpacks": [
{
"url": "https://github.com/heroku/heroku-buildpack-nodejs"
}
},
],
"description": "Used in dokku's test suite",
"env": {
"SECRET_TOKEN": {
"description": "A secret key for verifying the integrity of signed cookies.",
@@ -25,14 +19,33 @@
"generator": "echo 5"
}
},
"healthchecks": {
"web": [
{
"attempts": 2,
"content": "nodejs/express",
"name": "check-1",
"path": "/",
"timeout": 5,
"type": "startup",
"wait": 2
}
]
},
"image": "gliderlabs/herokuish:latest-22",
"addons": [
"dokku-postgres",
"dokku-redis"
"keywords": [
"nodejs",
"express",
"testing"
],
"buildpacks": [
{
"url": "https://github.com/heroku/heroku-buildpack-nodejs"
"logo": "https://raw.githubusercontent.com/dokku/dokku/master/docs/assets/dokku.png",
"name": "Sample node.js express app",
"repository": "https://github.com/dokku/dokku",
"scripts": {
"dokku": {
"postdeploy": "touch /app/postdeploy.test",
"predeploy": "touch /app/predeploy.test"
}
]
}
},
"website": "https://dokku.com/docs/"
}