Skip to content

Commit

Permalink
timeouts added for docker connection
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoKramer committed Feb 23, 2020
1 parent 180262a commit 1bfddf1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bob/states.clj
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@
:start (repl/migrate migration-config))

(m/defstate docker-conn
:start (docker/connect {:uri "unix:///var/run/docker.sock"}))
:start (docker/connect {:uri "unix:///var/run/docker.sock"
:connect-timeout 10
:read-timeout 2000
:write-timeout 2000
:call-timeout 30000}))

(m/defstate images
:start (docker/client {:category :images :conn docker-conn}))
Expand Down

0 comments on commit 1bfddf1

Please sign in to comment.