[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: gnu: Add conmon.
From: |
guix-commits |
Subject: |
02/06: gnu: Add conmon. |
Date: |
Sat, 1 Jan 2022 13:08:02 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 2981d8d744f131d2ebc6bb344aca0aa704430cd7
Author: Timmy Douglas <mail@timmydouglas.com>
AuthorDate: Tue Dec 21 23:33:48 2021 -0800
gnu: Add conmon.
* gnu/packages/containers.scm (conmon): New variable.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/containers.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm
index 4228a27a91..3fe8af5cbc 100644
--- a/gnu/packages/containers.scm
+++ b/gnu/packages/containers.scm
@@ -101,3 +101,48 @@
"crun is a fast and low-memory footprint Open Container Initiative (OCI)
Container Runtime fully written in C.")
(license license:gpl2+))))
+
+(define-public conmon
+ (package
+ (name "conmon")
+ (version "2.0.30")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/containers/conmon")
+ (commit (string-append "v" version))))
+ (sha256
+ (base32 "1sxpbm01g4xak4kqwvk45gmzr6n9bjzlfp1j85wyz8rj2hg2x4rm"))
+ (file-name (git-file-name name version))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:make-flags (list ,(string-append "CC=" (cc-for-target))
+ (string-append "PREFIX=" %output))
+ ;; XXX: uses `go get` to download 50 packages, runs a ginkgo test suite
+ ;; then tries to download busybox and use a systemd logging library
+ ;; see also
https://github.com/containers/conmon/blob/main/nix/derivation.nix
+ #:tests? #f
+ #:test-target "test"
+ #:phases (modify-phases %standard-phases
+ (delete 'configure)
+ (add-after 'unpack 'set-env
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; when running go, things fail because
+ ;; HOME=/homeless-shelter.
+ (setenv "HOME" "/tmp"))))))
+ (inputs
+ (list crun
+ glib
+ libseccomp))
+ (native-inputs
+ (list git
+ go
+ pkg-config))
+ (home-page "https://github.com/containers/conmon")
+ (synopsis "Monitoring tool for Open Container Initiative (OCI) runtime")
+ (description
+ "Conmon is a monitoring program and communication tool between a container
+manager (like Podman or CRI-O) and an Open Container Initiative (OCI)
+runtime (like runc or crun) for a single container.")
+ (license license:asl2.0)))
- branch master updated (d997fcd3e7 -> 637dec9d45), guix-commits, 2022/01/01
- 01/06: gnu: Add crun., guix-commits, 2022/01/01
- 03/06: gnu: Add libslirp., guix-commits, 2022/01/01
- 02/06: gnu: Add conmon.,
guix-commits <=
- 04/06: gnu: Add slirp4netns., guix-commits, 2022/01/01
- 06/06: gnu: Add podman., guix-commits, 2022/01/01
- 05/06: gnu: Add cni-plugins., guix-commits, 2022/01/01