-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathenvoy-1.29.yaml
99 lines (87 loc) · 2.63 KB
/
envoy-1.29.yaml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package:
name: envoy-1.29
version: 1.29.1
epoch: 1
description: Cloud-native high-performance edge/middle/service proxy
copyright:
- license: Apache-2.0
dependencies:
provides:
- envoy=${{package.full-version}}
environment:
contents:
packages:
- bash
- bazel-6
- binutils
- build-base
- busybox
- ca-certificates-bundle
- clang~15
- cmake
- coreutils
- git
- libtool
- llvm-libcxx-15
- llvm-libcxx-15-dev
- llvm-libcxxabi-15
- llvm-lld-15
- llvm15
- llvm15-cmake-default
- llvm15-dev
- llvm15-tools
- openjdk-11
- patch
- python3-dev
- samurai
- wolfi-baselayout
pipeline:
- uses: git-checkout
with:
repository: https://github.com/envoyproxy/envoy
tag: v${{package.version}}
expected-commit: 4fda4d79d06e1bd59e591be3f348223495083648
destination: envoy
- runs: |
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
mkdir -p .cache/bazel/_bazel_root
cd envoy
# The Python interpreter complains about being run as root, there's a flag to pass to disable that warning.
sed -i 's/envoy_dependencies_extra()/envoy_dependencies_extra(ignore_root_user_error=True)/g' WORKSPACE
./bazel/setup_clang.sh /usr
echo "build --config=libc++" >> user.bazelrc
bazel build --verbose_failures -c opt envoy
mkdir -p ${{targets.destdir}}/usr/bin/
mv bazel-bin/source/exe/envoy-static ${{targets.destdir}}/usr/bin/envoy
# We no longer need this cache dir, which has some writable files.
rm -rf ../.cache/bazel/_bazel_root
- uses: strip
subpackages:
- name: ${{package.name}}-oci-entrypoint
description: Entrypoint for using Envoy in OCI containers
dependencies:
runtime:
- busybox
provides:
- envoy-oci-entrypoint=${{package.full-version}}
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/var/lib/envoy/init
cp envoy/ci/docker-entrypoint.sh ${{targets.subpkgdir}}/var/lib/envoy/init/envoy-entrypoint.sh
chmod +x ${{targets.subpkgdir}}/var/lib/envoy/init/envoy-entrypoint.sh
- name: ${{package.name}}-config
description: Default Envoy configuration
dependencies:
provides:
- envoy-config=${{package.full-version}}
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/etc/envoy
cp envoy/configs/envoyproxy_io_proxy.yaml ${{targets.subpkgdir}}/etc/envoy/envoy.yaml
update:
enabled: true
github:
identifier: envoyproxy/envoy
strip-prefix: v
use-tag: true
tag-filter-prefix: v1.29