summaryrefslogtreecommitdiff
path: root/opt/containers-common/MAKEPKG
blob: a45ddb39a8d3c340cce40d319f05a819d35dfb19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/mkpkg
# *** Flux Linux ***
# description: Configuration files for container tools
# url: https://github.com/containers/common

name=containers-common
version=1.0
release=1
depends=()
source=()

sha256sums=(
)

build() {
    install -d $PKG/etc/containers

    # registries.conf
    printf '%s\n' \
        'unqualified-search-registries = ["docker.io"]' \
        '' \
        '[[registry]]' \
        'prefix = "docker.io"' \
        'location = "docker.io"' \
        > $PKG/etc/containers/registries.conf

    # storage.conf
    printf '%s\n' \
        '[storage]' \
        'driver = "overlay"' \
        'runroot = "/run/containers/storage"' \
        'graphroot = "/var/lib/containers/storage"' \
        '' \
        '[storage.options.overlay]' \
        'mountopt = "nodev,metacopy=off"' \
        > $PKG/etc/containers/storage.conf

    # policy.json
    printf '%s\n' \
        '{' \
        '    "default": [' \
        '        { "type": "insecureAcceptAnything" }' \
        '    ],' \
        '    "transports": {' \
        '        "docker-daemon": {' \
        '            "": [{ "type": "insecureAcceptAnything" }]' \
        '        }' \
        '    }' \
        '}' \
        > $PKG/etc/containers/policy.json

    # containers.conf - tuned for musl/runit/no-systemd
    printf '%s\n' \
        '[containers]' \
        'init_path = "/usr/libexec/podman/catatonit"' \
        '' \
        '[engine]' \
        'runtime = "crun"' \
        'cgroup_manager = "cgroupfs"' \
        'events_logger = "file"' \
        'helper_binaries_dir = ["/usr/libexec/podman"]' \
        '' \
        '[network]' \
        'network_backend = "netavark"' \
        'default_rootless_network_cmd = "pasta"' \
        > $PKG/etc/containers/containers.conf
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh