gnu: docker: Patch the reference to the docker proxy.
* gnu/packages/docker.scm (docker)[inputs]: Add docker-libnetwork-cmd-proxy. * gnu/packages/docker.scm (docker)[phases]{patch-paths}: Patch proxy.go to refer to the docker-proxy binary by its absolute path.
This commit is contained in:
parent
a01d54f3bd
commit
80fec17f39
|
@ -363,6 +363,11 @@ built-in registry server of Docker.")
|
||||||
(("var defaultCommandCandidates = .*")
|
(("var defaultCommandCandidates = .*")
|
||||||
(string-append "var defaultCommandCandidates = []string{\""
|
(string-append "var defaultCommandCandidates = []string{\""
|
||||||
(assoc-ref inputs "runc") "/sbin/runc\"}")))
|
(assoc-ref inputs "runc") "/sbin/runc\"}")))
|
||||||
|
(substitute* "vendor/github.com/docker/libnetwork/portmapper/proxy.go"
|
||||||
|
(("var userlandProxyCommandName = .*")
|
||||||
|
(string-append "var userlandProxyCommandName = \""
|
||||||
|
(assoc-ref inputs "docker-proxy")
|
||||||
|
"/bin/proxy\"\n")))
|
||||||
(let ((source-files (filter (lambda (name)
|
(let ((source-files (filter (lambda (name)
|
||||||
(not (string-contains name "test")))
|
(not (string-contains name "test")))
|
||||||
(find-files "." "\\.go$"))))
|
(find-files "." "\\.go$"))))
|
||||||
|
@ -511,6 +516,7 @@ built-in registry server of Docker.")
|
||||||
("containerd" ,containerd) ; for containerd-shim
|
("containerd" ,containerd) ; for containerd-shim
|
||||||
("coreutils" ,coreutils)
|
("coreutils" ,coreutils)
|
||||||
("dbus" ,dbus)
|
("dbus" ,dbus)
|
||||||
|
("docker-proxy" ,docker-libnetwork-cmd-proxy)
|
||||||
("e2fsprogs" ,e2fsprogs)
|
("e2fsprogs" ,e2fsprogs)
|
||||||
("git" ,git)
|
("git" ,git)
|
||||||
("iproute2" ,iproute)
|
("iproute2" ,iproute)
|
||||||
|
|
Loading…
Reference in New Issue