sudo rm -rf /
ERROR: /home/user/office/envoy-build/envoy-main/contrib/vcl/source/BUILD:72:8: Executing genrule //contrib/vcl/source:build_files failed: (Exit 123): process-wrapper failed: error executing command
(cd /home/user/.cache/bazel/_bazel_user/85b43671366bdc8fbb781cf3625a62cc/sandbox/docker/4723/execroot/envoy && \
exec env - \
BAZELISK_SKIP_WRAPPER=true \
COLORTERM=truecolor \
DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/1000/bus' \
DESKTOP_SESSION=ubuntu \
DISPLAY=:0 \
GDMSESSION=ubuntu \
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➤ bazel build //contrib/exe:envoy-static --sandbox_debug --verbose_failures | |
INFO: Analyzed target //contrib/exe:envoy-static (0 packages loaded, 0 targets configured). | |
INFO: Found 1 target... | |
INFO: From Foreign Cc - Make: Building dlb: | |
1709207842.885253807: src/main/tools/linux-sandbox.cc:152: calling pipe(2)... | |
1709207842.885286387: src/main/tools/linux-sandbox.cc:171: calling clone(2)... | |
1709207842.886051758: src/main/tools/linux-sandbox.cc:180: linux-sandbox-pid1 has PID 1283193 | |
1709207842.886100449: src/main/tools/linux-sandbox-pid1.cc:681: Pid1Main started | |
1709207842.886176730: src/main/tools/linux-sandbox.cc:197: done manipulating pipes | |
1709207842.886264821: src/main/tools/linux-sandbox-pid1.cc:285: working dir: /home/user/.cache/bazel/_bazel_user/85b43671366bdc8fbb781cf3625a62cc/sandbox/linux-sandbox/16954/execroot/envoy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: kubedb.com/v1alpha2 | |
kind: Postgres | |
metadata: | |
name: pg-tls-15-3-new | |
namespace: poc | |
spec: | |
version: "15.3" | |
replicas: 1 | |
configSecret: | |
name: user-conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this configure file is only for envoy-filter-example repo | |
admin: | |
access_log_path: ./loglog.log | |
address: | |
socket_address: | |
address: 127.0.0.1 | |
port_value: 0 | |
static_resources: | |
clusters: | |
name: cluster_0 |
Please see here
Fortunately the docs for Bazel with CPP are organized in here: https://bazel.build/docs/bazel-and-cpp
- The root directory of the project is where
WORKSPACE
file is created. - All path is relative to the root directory.
BUILD
is located per package.
stage3/
├── lib
│ ├── BUILD
│ ├── hello-time.cc
│ └── hello-time.h
├── main
I have a grpc server running at 0.0.0.0:50051. I'll show how you can use grpcurl
to test it.
Before that, install grpcurl
(mybe using go).
- List services the server provides:
user@matin ~/o/g/examples ((v1.55.1))> grpcurl -plaintext localhost:50051 list
grpc.health.v1.Health
grpc.reflection.v1alpha.ServerReflection
helloworld.Greeter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
here case1 is always true before case2 (i.e. 1st call of help -> case1 is true, 2nd call of help -> case2 true). | |
So, in the 2nd call, case2 is true where we're using exp, ctinfoPrev, saddr_m what have been initialized before in case1. | |
Note: these structures are allocated in module init function which is called when the module is loaded | |
*/ | |
union nf_inet_addr *saddr_m; | |
struct sk_buff* skbPrev; | |
enum ip_conntrack_info ctinfoPrev; | |
struct nf_conntrack_expect *exp; |
NewerOlder