1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016 David Thompson <davet@gnu.org>
4 ;;; This file is part of GNU Guix.
6 ;;; GNU Guix is free software; you can redistribute it and/or modify it
7 ;;; under the terms of the GNU General Public License as published by
8 ;;; the Free Software Foundation; either version 3 of the License, or (at
9 ;;; your option) any later version.
11 ;;; GNU Guix is distributed in the hope that it will be useful, but
12 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;; GNU General Public License for more details.
16 ;;; You should have received a copy of the GNU General Public License
17 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19 (define-module (gnu packages docker)
20 #:use-module ((guix licenses) #:prefix license:)
21 #:use-module (gnu packages)
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix git-download)
25 #:use-module (guix build-system python)
26 #:use-module (guix utils)
27 #:use-module (gnu packages python))
29 (define-public python-docker-py
31 (name "python-docker-py")
36 (uri (pypi-uri "docker-py" version))
39 "16ba4xyd46hkj9nkfpz15r8kskl7ljx1afjzchyrhdsrklvzgzim"))))
40 (build-system python-build-system)
41 ;; TODO: Tests require a running Docker daemon.
42 (arguments '(#:tests? #f))
44 `(("python-requests" ,python-requests)
45 ("python-six" ,python-six)
46 ("python-websocket-client" ,python-websocket-client)))
47 (home-page "https://github.com/docker/docker-py/")
48 (synopsis "Python client for Docker")
49 (description "Docker-Py is a Python client for the Docker container
51 (license license:asl2.0)))
53 (define-public python-dockerpty
55 (name "python-dockerpty")
60 (uri (pypi-uri "dockerpty" version))
63 "0za6rr349641wv76ww9l3zcic2xyxrirlxpnzl4296h897648455"))))
64 (build-system python-build-system)
66 `(("python-six" ,python-six)))
67 (home-page "https://github.com/d11wtq/dockerpty")
68 (synopsis "Python library to use the pseudo-TTY of a Docker container")
69 (description "Docker PTY provides the functionality needed to operate the
70 pseudo-terminal (PTY) allocated to a Docker container using the Python
72 (license license:asl2.0)))
74 (define-public docker-compose
76 (name "docker-compose")
81 (uri (pypi-uri "docker-compose" version))
84 "0ksg7hm2yvc977968dixxisrhcmvskzpcx3pz0v1kazrdqp7xakr"))))
85 (build-system python-build-system)
86 ;; TODO: Tests require running Docker daemon.
87 (arguments '(#:tests? #f))
89 `(("python-docker-py" ,python-docker-py)
90 ("python-dockerpty" ,python-dockerpty)
91 ("python-docopt" ,python-docopt)
92 ("python-jsonschema" ,python-jsonschema)
93 ("python-pyyaml" ,python-pyyaml)
94 ("python-requests" ,python-requests-2.7)
95 ("python-six" ,python-six)
96 ("python-texttable" ,python-texttable)
97 ("python-websocket-client" ,python-websocket-client)))
98 (home-page "https://www.docker.com/")
99 (synopsis "Multi-container orchestration for Docker")
100 (description "Docker Compose is a tool for defining and running
101 multi-container Docker applications. A Compose file is used to configure an
102 application’s services. Then, using a single command, the containers are
103 created and all the services are started as specified in the configuration.")
104 (license license:asl2.0)))