From c7b6c54c240bd68980279443a0952f907bf149b9 Mon Sep 17 00:00:00 2001 From: Rahul De Date: Sat, 25 Apr 2020 17:24:18 +0200 Subject: [PATCH] Release 1.0.0-RC1 --- README.md | 11 ++++++----- project.clj | 2 +- src/clj_docker_client/core.clj | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 43dc51d..fe417e5 100644 --- a/README.md +++ b/README.md @@ -20,17 +20,17 @@ See [this](https://cljdoc.org/d/lispyclouds/clj-docker-client/0.3.2/doc/readme) ### Installation Leiningen/Boot ```clojure -[lispyclouds/clj-docker-client "0.5.3"] +[lispyclouds/clj-docker-client "1.0.0-RC1"] ``` Clojure CLI/deps.edn ```clojure -{lispyclouds/clj-docker-client {:mvn/version "0.5.3"}} +{lispyclouds/clj-docker-client {:mvn/version "1.0.0-RC1"}} ``` Gradle ```groovy -compile 'lispyclouds:clj-docker-client:0.5.3' +compile 'lispyclouds:clj-docker-client:1.0.0-RC1' ``` Maven @@ -38,7 +38,7 @@ Maven lispyclouds clj-docker-client - 0.5.3 + 1.0.0-RC1 ``` @@ -124,7 +124,7 @@ create a client scoped to the operations of a given category. Can be bound to an ``` Using a timeout for the connections. Thanks [olymk2](https://github.com/olymk2) for the suggestion. Docker actions can take quite a long time so set the timeout accordingly. When you don't provide timeouts -then there will be no timeout clientside. +then there will be no timeout on the client side. ```clojure (def ping (docker/client {:category :_ping :conn {:uri "unix:///var/run/docker.sock" @@ -133,6 +133,7 @@ then there will be no timeout clientside. :write-timeout 30000 :call-timeout 30000}}})) ``` +Alternatively if connecting to a remote docker daemon over TCP supply the `:uri` as `https://your.docker.host:2376`. `unix://` and `http(s)://` are the currently supported protocols. #### ops Lists the supported ops by a client. diff --git a/project.clj b/project.clj index d3969b8..60ecb99 100644 --- a/project.clj +++ b/project.clj @@ -13,7 +13,7 @@ ; You should have received a copy of the GNU Lesser General Public License ; along with clj-docker-client. If not, see . -(defproject lispyclouds/clj-docker-client "0.5.3" +(defproject lispyclouds/clj-docker-client "1.0.0-RC1" :author "Rahul De " :url "https://github.com/lispyclouds/clj-docker-client" :description "An idiomatic data-driven clojure client for Docker." diff --git a/src/clj_docker_client/core.clj b/src/clj_docker_client/core.clj index 7db994f..cd8393a 100644 --- a/src/clj_docker_client/core.clj +++ b/src/clj_docker_client/core.clj @@ -108,7 +108,7 @@ :as as :throw-exception? throw-exception?}) try-json-parse #(try - (json/read-value % (json/object-mapper {:decode-key-fn keyword})) + (json/read-value % (json/object-mapper {:decode-key-fn true})) (catch Exception _ %))] (case as (:socket :stream) response