-
Notifications
You must be signed in to change notification settings - Fork 5
Fix console container startup issue #741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 1.6.x
Are you sure you want to change the base?
Changes from all commits
9e33d22
208e0b0
a398961
b2ab4ba
d94d638
cd5cef1
32e383e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # CHANGELOG | ||
|
|
||
| ## 1.5.0 - 20230126 | ||
|
|
||
| ### Added attributes | ||
|
|
||
| * `attribute('console.state.steps')` - Steps necessary to test the health of the console container | ||
| * `attribute('console.healthcheck.enabled')` - Defaults to `true` only for local builds | ||
| * `attribute('console.healthcheck.test')` - The command in array format that will run the healthcheck - Defaults to ['CMD', 'app', 'state'] | ||
| * `attribute('console.healthcheck.test.start_period')` - Defaults to 5s | ||
| * `attribute('console.healthcheck.test.interval')` - Defaults to 5s | ||
| * `attribute('console.healthcheck.test.timeout')` - Defaults to 3s | ||
| * `attribute('console.healthcheck.test.retries')` - Defaults to 10 | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| #!/bin/bash | ||
|
|
||
| function test_ok() | ||
| { | ||
| # run any command required which result can be monitored by Docker's HEALTHCHECK | ||
| {% for step in @('console.state.steps') -%} | ||
| {{ step|raw }} | ||
| {% else -%} | ||
| : | ||
| {% endfor %} | ||
|
|
||
| } | ||
|
|
||
| function task_state() | ||
| { | ||
| if ! test_ok; then | ||
| echo "Console is not ready: test steps failed!" | ||
| return 1 | ||
| fi | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,4 +3,7 @@ attributes: | |
| app: | ||
| build: dynamic | ||
| mode: development | ||
| version: develop | ||
| version: develop | ||
| console: | ||
| healthcheck: | ||
| enabled: true | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can it be enabled for helm and CI as well? It's useful for seeing the deployment readiness, and CI should act the same as local
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. technically helm way is enough being a common
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note though that the helm way is hard coded to |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,3 +5,6 @@ attributes: | |
| build: dynamic | ||
| mode: development | ||
| version: develop | ||
| console: | ||
| healthcheck: | ||
| enabled: true | ||
Uh oh!
There was an error while loading. Please reload this page.