Skip to content

Commit

Permalink
Release 1.0.0-RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
lispyclouds committed Apr 25, 2020
1 parent 41ea91d commit c7b6c54
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@ 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
```xml
<dependency>
<groupId>lispyclouds</groupId>
<artifactId>clj-docker-client</artifactId>
<version>0.5.3</version>
<version>1.0.0-RC1</version>
</dependency>
```

Expand Down Expand Up @@ -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"
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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 <http://www.gnu.org/licenses/>.

(defproject lispyclouds/clj-docker-client "0.5.3"
(defproject lispyclouds/clj-docker-client "1.0.0-RC1"
:author "Rahul De <rahul@mailbox.org>"
:url "https://github.com/lispyclouds/clj-docker-client"
:description "An idiomatic data-driven clojure client for Docker."
Expand Down
2 changes: 1 addition & 1 deletion src/clj_docker_client/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7b6c54

Please sign in to comment.