docker: An API client for docker written in Haskell

[ bsd3, library, network ] [ Propose Tags ]

See API documentation below.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.2.0.1, 0.2.0.2, 0.2.0.3, 0.2.0.4, 0.3.0.0, 0.3.0.1, 0.4.0.0, 0.4.0.1, 0.4.0.2, 0.4.1.0, 0.4.1.1, 0.5.0.0, 0.5.0.1, 0.5.1.0, 0.5.1.1, 0.6.0.0, 0.6.0.2, 0.6.0.3, 0.6.0.4, 0.6.0.5, 0.6.0.6, 0.7.0.0, 0.7.0.1 (info)
Dependencies aeson (>=0.9.0 && <3.0.0), base (>=4.7 && <5), blaze-builder (>=0.4.0 && <0.5.0), bytestring (>=0.10.0 && <0.12.0), conduit, conduit-combinators, conduit-extra, containers (>=0.5.0 && <0.7.0), data-default-class (>=0.0.1 && <0.2.0), directory (>=1.2.5.0), exceptions, filemanip, filepath, http-client (>=0.4.0 && <0.8.0), http-conduit, http-types (>=0.9 && <0.13), monad-control, mtl (>=2.0.0 && <3.0.0), network (>=2.6.0), resourcet, scientific (>=0.3.0 && <0.4.0), tar, temporary, text (>=1.0.0 && <2.0.0), time (>=1.5.0 && <2.0.0), tls (>=1.3.7 && <1.7.0), transformers, transformers-base, unliftio-core (>=0.1.0.0 && <0.3.0), unordered-containers (>=0.2.0 && <0.3.0), uuid, vector, x509 (>=1.6.0 && <1.8.0), x509-store (>=1.6.0 && <1.8.0), x509-system (>=1.6.0 && <1.8.0), zlib [details]
License BSD-3-Clause
Copyright BSD3
Author Deni Bertovic <deni@denibertovic.com>, James Parker <jp@jamesparker.me>
Maintainer Deni Bertovic <deni@denibertovic.com>
Category Network
Home page https://github.com/denibertovic/docker-hs
Source repo head: git clone https://github.com/denibertovic/docker-hs
Uploaded by denibertovic at 2022-06-17T18:48:58Z
Distributions
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 14107 total (73 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-06-17 [all 1 reports]

Readme for docker-0.7.0.1

[back to package description]

An API client for docker written in Haskell

Current state

Supported Docker Engine Api version: v1.24 and onwards.

Anything upward of that should work since Docker versions their API. Older docker version and engine api versions are not supported at the moment.

Documentation

The API-documentation is available at Hackage. There are also some usage-examples in the main library source file, Client.hs.

Contributing

Please see CONTRIBUTING.md.

Project Setup

For working on the library, you need the Haskell Tool Stack installed (see the Haskell Tool Stack website). You also need make to use the Makefile included in the project. Run make help to see the available commands (for building, running the tests and releasing).

Tests

Tests are located in the tests directory and can be run with make test. This only runs the unit tests.

To run integration tests, you need Docker installed and listening on Port 2375 of localhost (docker only listens to a Unix socket by default, see the Docker documentation for details). Set the environment variable RUN_INTEGRATION_TESTS, i.e. RUN_INTEGRATION_TESTS=1 make test.