Skip to content

Commit

Permalink
Add missing field 'start_period' to Healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
dvallant authored and gesellix committed May 23, 2022
1 parent 3df5266 commit aa099ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package de.gesellix.docker.compose.types

import com.squareup.moshi.Json
import de.gesellix.docker.compose.adapters.CommandType

data class Healthcheck(
Expand All @@ -9,5 +10,7 @@ data class Healthcheck(
var retries: Float? = null,
@CommandType
var test: Command = Command(),
var timeout: String? = null
var timeout: String? = null,
@Json(name = "start_period")
var startPeriod: String? = null
)
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@ fun newSampleConfigFull(): ComposeConfig {
interval = "10s",
retries = 5f,
test = Command(parts = arrayListOf("echo \"hello world\"")),
timeout = "1s"
timeout = "1s",
startPeriod = "1s"
),
hostname = "foo",
image = "redis",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ services:
interval: 10s
timeout: 1s
retries: 5
start_period: 1s

# Any valid image reference - repo, tag, id, sha
image: redis
Expand Down

0 comments on commit aa099ea

Please sign in to comment.