Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it easier to add new packages #34

Open
pmengelbert opened this issue Apr 13, 2023 · 0 comments
Open

Make it easier to add new packages #34

pmengelbert opened this issue Apr 13, 2023 · 0 comments

Comments

@pmengelbert
Copy link
Contributor

pmengelbert commented Apr 13, 2023

Converting the Archive struct looks something like this

A # at the start of a string indicates that it's a file on the host system (not in the container), the contents of which should replace the string. A current limitation imposed by dagger is that the file must be valid UTF-8, so no arbitrary binary files.

name: moby-containerd
webpage: "https://github.com/containerd/containerd"
makefile: "#moby-containerd/Makefile"
files:
  - source: "/build/src/bin"
    dest: "usr/bin"
  - source: "/build/man"
    dest: "/usr/share/man"
  - source: "/build/legal/LICENSE"
    dest: "/usr/share/doc/moby-containerd/LICENSE"
  - source: "/build/legal/NOTICE"
    dest: "/usr/share/doc/moby-containerd/NOTICE.gz"
    compress: true
systemd:
  - source: "/build/src/containerd.service"
    dest: "lib/systemd/system/containerd.service"
binaries:
  deb:
    - "/build/src/bin/containerd"
    - "/build/src/bin/containerd-shim"
    - "/build/src/bin/containerd-shim-runc-v1"
    - "/build/src/bin/containerd-shim-runc-v2"
    - "/build/src/bin/containerd-stress"
  rpm:
    - "/build/src/bin/containerd"
    - "/build/src/bin/containerd-shim"
    - "/build/src/bin/containerd-shim-runc-v1"
    - "/build/src/bin/containerd-shim-runc-v2"
    - "/build/src/bin/containerd-stress"
  win:
    - "/build/src/bin/containerd.exe"
    - "/build/src/bin/containerd-shim-runhcs-v1.exe"
    - "/build/src/bin/ctr.exe"
runtimeDeps:
  rpm:
    - "/bin/sh"
    - "container-selinux >= 2:2.95"
    - "device-mapper-libs >= 1.02.90-1"
    - "iptables"
    - "libcgroup"
    - "libseccomp >= 2.3"
    - "moby-containerd >= 1.3.9"
    - "moby-runc >= 1.0.2"
    - "systemd-units"
    - "tar"
    - "xz"
  deb:
    - "moby-runc (>= 1.0.2)"
recommends:
  deb:
    - "ca-certificates"
conflicts:
  deb:
    - "containerd"
    - "containerd.io"
    - "moby-engine (<= 3.0.12)"
  rpm:
    - "containerd"
    - "containerd-io"
    - "moby-engine <= 3.0.11"
replaces:
  deb:
    - containerd
    - containerd.io
provides:
  deb:
    - containerd
    - containerd.io
installScripts:
  rpm:
    - when: post-install
      script: "#moby-containerd/postinstall/rpm/postinstall"
    - when: pre-removal
      script: "#moby-containerd/postinstall/rpm/prerm"
    - when: post-upgrade
      script: "#moby-containerd/postinstall/rpm/upgrade"
  deb:
    - when: post-install
      script: "#moby-containerd/postinstall/deb/postinstall"
    - when: pre-removal
      script: "#moby-containerd/postinstall/deb/prerm"
    - when: post-removal
      script: "#moby-containerd/postinstall/deb/postrm"
description: |
  Industry-standard container runtime
   containerd is an industry-standard container runtime with an emphasis on
   simplicity, robustness and portability. It is available as a daemon for Linux
   and Windows, which can manage the complete container lifecycle of its host
   system: image transfer and storage, container execution and supervision,
   low-level storage and network attachments, etc.
   .
   containerd is designed to be embedded into a larger system, rather than being
   used directly by developers or end-users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant