File tree 4 files changed +13
-3
lines changed
4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ Summary of release changes for Version 2 - CentOS-7
10
10
- Replaces deprecated Dockerfile ` MAINTAINER ` with a ` LABEL ` .
11
11
- Adds a ` src ` directory for the image root files.
12
12
- Adds wrapper functions to functional test cases.
13
+ - Adds ` STARTUP_TIME ` variable for the ` logs-delayed ` Makefile target.
13
14
14
15
### 2.2.1 - 2017-02-21
15
16
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ Targets:
26
26
DOCKER_IMAGE_TAG variable.
27
27
logs Display log output from the running container.
28
28
logs-delayed Display log output from the running container after
29
- backing off shortly . This can be necessary when
30
- chaining make targets together.
29
+ backing off for STARTUP_TIME seconds . This can be
30
+ necessary when chaining make targets together.
31
31
pause Pause the running container.
32
32
pull Pull the release image from the registry. Requires
33
33
the DOCKER_IMAGE_TAG variable.
@@ -61,6 +61,9 @@ Variables:
61
61
artifacts are placed.
62
62
- NO_CACHE When true, no cache will be used while running the
63
63
build target.
64
+ - STARTUP_TIME Defines the number of seconds expected to complete
65
+ the startup process, including the bootstrap where
66
+ applicable.
64
67
65
68
endef
66
69
@@ -357,7 +360,7 @@ logs: _prerequisites
357
360
@ $(docker ) logs $(DOCKER_NAME )
358
361
359
362
logs-delayed : _prerequisites
360
- @ sleep 2
363
+ @ sleep $( STARTUP_TIME )
361
364
@ $(MAKE ) logs
362
365
363
366
load : _prerequisites _require-docker-release-tag _require-package-path
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ NO_CACHE ?= false
26
26
# Directory path for release packages
27
27
DIST_PATH ?= ./dist
28
28
29
+ # Number of seconds expected to complete container startup including bootstrap.
30
+ STARTUP_TIME ?= 2
31
+
29
32
# ------------------------------------------------------------------------------
30
33
# Application container configuration
31
34
# ------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ REGISTER_ETCD_PARAMETERS="${REGISTER_ETCD_PARAMETERS:-}"
30
30
REGISTER_TTL=" ${REGISTER_TTL:- 60} "
31
31
REGISTER_UPDATE_INTERVAL=" ${REGISTER_UPDATE_INTERVAL:- 55} "
32
32
33
+ # Number of seconds expected to complete container startup including bootstrap.
34
+ STARTUP_TIME=" ${STARTUP_TIME:- 2} "
35
+
33
36
# Application container configuration
34
37
SSH_AUTHORIZED_KEYS=" ${SSH_AUTHORIZED_KEYS:- } "
35
38
SSH_AUTOSTART_SSHD=" ${SSH_AUTOSTART_SSHD:- true} "
You can’t perform that action at this time.
0 commit comments