Skip to content

Commit ec08249

Browse files
author
anandkumarpatel
committed
Merge pull request #454 from CodeNow/add-timeout
Add timeout
2 parents b47fd11 + 1b0a080 commit ec08249

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

configs/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ HASHIDS_LENGTH=6
2020
DOCKER_IMAGE_BUILDER_NAME="runnable/image-builder"
2121
DOCKER_IMAGE_BUILDER_VERSION="d1.3.1-v1.4.3"
2222
DOCKER_IMAGE_BUILDER_CACHE="/tmp"
23+
DOCKER_TIMEOUT=5000
2324
BUILD_END_TIMEOUT=100
2425
DATADOG_HOST="localhost"
2526
DATADOG_PORT=8125

lib/models/apis/docker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ function Docker (dockerHost) {
2626
this.port = parsed.port || 4243;
2727
this.docker = dogerode(new Dockerode({
2828
host: this.dockerHost,
29-
port: this.port
29+
port: this.port,
30+
timeout: process.env.DOCKER_TIMEOUT
3031
}), {
3132
service: 'api',
3233
host: process.env.DATADOG_HOST,

0 commit comments

Comments
 (0)