|
| 1 | +package: |
| 2 | + name: cilium-1.19 |
| 3 | + version: "1.19.0" |
| 4 | + epoch: 0 |
| 5 | + description: Cilium is a networking, observability, and security solution with an eBPF-based dataplane |
| 6 | + copyright: |
| 7 | + - license: Apache-2.0 |
| 8 | + resources: |
| 9 | + cpu: 20 |
| 10 | + memory: 64Gi |
| 11 | + dependencies: |
| 12 | + runtime: |
| 13 | + - bpftool |
| 14 | + # cilium does compilations at runtime on the node. |
| 15 | + - clang-17 |
| 16 | + - cni-plugins-loopback |
| 17 | + - iproute2 |
| 18 | + - ipset |
| 19 | + - iptables-nft |
| 20 | + - kmod |
| 21 | + - llvm-17 |
| 22 | + - merged-sbin |
| 23 | + - wolfi-baselayout |
| 24 | + provides: |
| 25 | + - cilium=${{package.full-version}} |
| 26 | + |
| 27 | +environment: |
| 28 | + contents: |
| 29 | + packages: |
| 30 | + - bash |
| 31 | + - bazel-6 |
| 32 | + - binutils |
| 33 | + - build-base |
| 34 | + - busybox |
| 35 | + - ca-certificates-bundle |
| 36 | + - clang-17 |
| 37 | + - cmake |
| 38 | + - coreutils # for GNU install |
| 39 | + - git |
| 40 | + - go |
| 41 | + - grep |
| 42 | + - isl-dev |
| 43 | + - libcxx1-17-dev |
| 44 | + - libtool |
| 45 | + - lld-17 |
| 46 | + - lld-17-dev |
| 47 | + - llvm-17-dev |
| 48 | + - mpc-dev |
| 49 | + - openjdk-11 |
| 50 | + - patch |
| 51 | + - python3-dev |
| 52 | + - samurai |
| 53 | + - wolfi-baselayout |
| 54 | + |
| 55 | +pipeline: |
| 56 | + - uses: git-checkout |
| 57 | + with: |
| 58 | + repository: https://github.com/cilium/cilium |
| 59 | + tag: v${{package.version}} |
| 60 | + expected-commit: 1403e61a78a013333992105bf58f9eea26d360ed |
| 61 | + |
| 62 | + - uses: patch |
| 63 | + with: |
| 64 | + patches: loopback-location.patch |
| 65 | + |
| 66 | + - runs: | |
| 67 | + # Bazel errors out on toolchain stanza |
| 68 | + sed -i '/$toolchain /d' go.mod |
| 69 | + # Bazel errors out on go point release |
| 70 | + sed -i 's|^\(go 1\.[0-9]*\)\.[0-9]*|\1|' go.mod |
| 71 | +
|
| 72 | + - runs: | |
| 73 | + # Remove groupadd from Makefile: it's not doing anything useful in |
| 74 | + # a package build anyway, and it's not available in busybox. |
| 75 | + find . -name Makefile -exec sed -i '/groupadd/d' {} \; |
| 76 | +
|
| 77 | + DESTDIR=${{targets.destdir}} DISABLE_ENVOY_INSTALLATION=1 make build-container |
| 78 | + DESTDIR=${{targets.destdir}} DISABLE_ENVOY_INSTALLATION=1 make install-container |
| 79 | +
|
| 80 | + - uses: strip |
| 81 | + |
| 82 | +subpackages: |
| 83 | + - name: ${{package.name}}-container-init |
| 84 | + description: init scripts for cilium |
| 85 | + dependencies: |
| 86 | + provides: |
| 87 | + - cilium-container-init=${{package.full-version}} |
| 88 | + runtime: |
| 89 | + - merged-sbin |
| 90 | + - wolfi-baselayout |
| 91 | + pipeline: |
| 92 | + - runs: | |
| 93 | + mkdir -p ${{targets.subpkgdir}}/usr/bin |
| 94 | + cp images/cilium/init-container.sh \ |
| 95 | + plugins/cilium-cni/install-plugin.sh \ |
| 96 | + plugins/cilium-cni/cni-uninstall.sh \ |
| 97 | + ${{targets.subpkgdir}}/usr/bin |
| 98 | + test: |
| 99 | + pipeline: |
| 100 | + - runs: | |
| 101 | + test -x /usr/bin/init-container.sh |
| 102 | + test -x /usr/bin/install-plugin.sh |
| 103 | + test -x /usr/bin/cni-uninstall.sh |
| 104 | +
|
| 105 | + - name: ${{package.name}}-container-init-compat |
| 106 | + description: init scripts for cilium |
| 107 | + dependencies: |
| 108 | + runtime: |
| 109 | + - ${{package.name}}-container-init |
| 110 | + - merged-sbin |
| 111 | + - wolfi-baselayout |
| 112 | + provides: |
| 113 | + - cilium-container-init-compat=${{package.full-version}} |
| 114 | + pipeline: |
| 115 | + - runs: | |
| 116 | + mkdir -p ${{targets.subpkgdir}} |
| 117 | + ln -sf /usr/bin/init-container.sh ${{targets.subpkgdir}}/init-container.sh |
| 118 | + ln -sf /usr/bin/install-plugin.sh ${{targets.subpkgdir}}/install-plugin.sh |
| 119 | + ln -sf /usr/bin/cni-uninstall.sh ${{targets.subpkgdir}}/cni-uninstall.sh |
| 120 | + test: |
| 121 | + pipeline: |
| 122 | + - runs: | |
| 123 | + test -x $(readlink -f /init-container.sh) |
| 124 | + test -x $(readlink -f /install-plugin.sh) |
| 125 | + test -x $(readlink -f /cni-uninstall.sh) |
| 126 | +
|
| 127 | + - name: ${{package.name}}-compat |
| 128 | + description: Compat to make our image compatible with upstream |
| 129 | + dependencies: |
| 130 | + runtime: |
| 131 | + - wolfi-baselayout |
| 132 | + provides: |
| 133 | + - cilium-compat=${{package.full-version}} |
| 134 | + pipeline: |
| 135 | + - runs: | |
| 136 | + mkdir -p ${{targets.subpkgdir}}/run |
| 137 | + mkdir -p ${{targets.subpkgdir}}/var |
| 138 | + ln -sf /run ${{targets.subpkgdir}}/var/run |
| 139 | + test: |
| 140 | + pipeline: |
| 141 | + - uses: test/virtualpackage |
| 142 | + with: |
| 143 | + virtual-pkg-name: cilium-compat |
| 144 | + real-pkg-name: ${{subpkg.name}} |
| 145 | + |
| 146 | + - name: ${{package.name}}-iptables |
| 147 | + description: iptables compatibility package for cilium |
| 148 | + dependencies: |
| 149 | + runtime: |
| 150 | + - iptables-nft |
| 151 | + - merged-sbin |
| 152 | + - wolfi-baselayout |
| 153 | + provides: |
| 154 | + - cilium-iptables=${{package.full-version}} |
| 155 | + test: |
| 156 | + pipeline: |
| 157 | + - uses: test/emptypackage |
| 158 | + |
| 159 | + - name: ${{package.name}}-operator-generic |
| 160 | + description: Generic operator for cilium |
| 161 | + dependencies: |
| 162 | + runtime: |
| 163 | + - gops |
| 164 | + - merged-sbin |
| 165 | + - wolfi-baselayout |
| 166 | + provides: |
| 167 | + - cilium-operator-generic=${{package.full-version}} |
| 168 | + pipeline: |
| 169 | + - runs: | |
| 170 | + cd /home/build/operator |
| 171 | + make cilium-operator-generic |
| 172 | + DESTDIR=${{targets.subpkgdir}} make install-generic |
| 173 | + - uses: strip |
| 174 | + test: |
| 175 | + pipeline: |
| 176 | + - runs: | |
| 177 | + # Test version output |
| 178 | + cilium-operator-generic --version | grep -q "${{package.version}}" |
| 179 | +
|
| 180 | + - name: ${{package.name}}-operator-aws |
| 181 | + description: AWS operator for cilium |
| 182 | + dependencies: |
| 183 | + runtime: |
| 184 | + - gops |
| 185 | + - merged-sbin |
| 186 | + - wolfi-baselayout |
| 187 | + provides: |
| 188 | + - cilium-operator-aws=${{package.full-version}} |
| 189 | + pipeline: |
| 190 | + - runs: | |
| 191 | + cd /home/build/operator |
| 192 | + make cilium-operator-aws |
| 193 | + DESTDIR=${{targets.subpkgdir}} make install-aws |
| 194 | + - uses: strip |
| 195 | + test: |
| 196 | + pipeline: |
| 197 | + - runs: | |
| 198 | + # Test version output |
| 199 | + cilium-operator-aws --version | grep -q "${{package.version}}" |
| 200 | +
|
| 201 | + - name: ${{package.name}}-hubble-relay |
| 202 | + description: Hubble relay |
| 203 | + dependencies: |
| 204 | + provides: |
| 205 | + - cilium-hubble-relay=${{package.full-version}} |
| 206 | + runtime: |
| 207 | + - merged-sbin |
| 208 | + - wolfi-baselayout |
| 209 | + pipeline: |
| 210 | + - runs: | |
| 211 | + cd /home/build/hubble-relay |
| 212 | + make hubble-relay |
| 213 | + DESTDIR=${{targets.subpkgdir}} make install |
| 214 | + - uses: strip |
| 215 | + test: |
| 216 | + pipeline: |
| 217 | + - runs: | |
| 218 | + # Test version output |
| 219 | + hubble-relay --version | grep -q "${{package.version}}" |
| 220 | +
|
| 221 | + - name: ${{package.name}}-clustermesh-apiserver |
| 222 | + description: Clustermesh apiserver |
| 223 | + dependencies: |
| 224 | + runtime: |
| 225 | + - etcd |
| 226 | + - gops |
| 227 | + provides: |
| 228 | + - cilium-clustermesh-apiserver=${{package.full-version}} |
| 229 | + pipeline: |
| 230 | + - working-directory: /home/build/clustermesh-apiserver |
| 231 | + pipeline: |
| 232 | + - runs: make clustermesh-apiserver |
| 233 | + - uses: autoconf/make-install |
| 234 | + - runs: install -Dm755 etcd-config.yaml ${{targets.contextdir}}/var/lib/cilium/etcd-config.yaml |
| 235 | + - uses: strip |
| 236 | + test: |
| 237 | + pipeline: |
| 238 | + - runs: | |
| 239 | + # check these files exist |
| 240 | + stat /usr/bin/clustermesh-apiserver |
| 241 | + stat /var/lib/cilium/etcd-config.yaml |
| 242 | + clustermesh-apiserver version | grep "${{package.version}}" |
| 243 | + clustermesh-apiserver --help 2>&1 | grep "Run the ClusterMesh apiserver" |
| 244 | +
|
| 245 | +test: |
| 246 | + pipeline: |
| 247 | + - uses: test/tw/ver-check |
| 248 | + with: |
| 249 | + bins: cilium cilium-dbg cilium-agent |
| 250 | + # Ensure that structured version info is available |
| 251 | + - runs: cilium version -ojsonpath={.Client.Version} | grep ${{package.version}} |
| 252 | + - name: Test help commands |
| 253 | + runs: | |
| 254 | + cilium --help |
| 255 | + cilium-agent --help |
| 256 | + cilium-bugtool --help |
| 257 | + cilium-dbg --help |
| 258 | + cilium-health --help |
| 259 | + cilium-mount --help |
| 260 | + cilium-sysctlfix --help |
| 261 | +
|
| 262 | +update: |
| 263 | + enabled: true |
| 264 | + github: |
| 265 | + identifier: cilium/cilium |
| 266 | + strip-prefix: v |
| 267 | + tag-filter-prefix: v1.19. |
0 commit comments