Install espup tool:
cargo install espup
espup install
Init path
source ~/export-esp.sh
// Controller section | |
trait EngineController { | |
fn forward(&self) -> bool { | |
return true; | |
} | |
} | |
#[derive(Debug)] | |
struct Engine {} |
flowchart LR | |
classDef mySubgraphStyle fill:red,stroke:#333,stroke-width:2px,width:200px,height:200px; | |
classDef actor fill:#f9f,stroke:#333,stroke-width:2px,shape:actor; | |
subgraph "Main"[Main workflos] | |
subgraph "WDA"[WorkFlow A] | |
direction LR |
#![no_std] | |
#![no_main] | |
use esp_backtrace as _; | |
use esp_println::println; | |
use hal::{ | |
clock::ClockControl, peripherals::Peripherals, prelude::*, timer::TimerGroup, Delay, Rtc, IO, | |
}; | |
#[entry] | |
fn main() -> ! { |
Install espup tool:
cargo install espup
espup install
Init path
source ~/export-esp.sh
echo "***************** Certs creation *************************" | |
function echo { | |
COLOR="\e[93m"; | |
ENDCOLOR="\e[0m"; | |
printf "$COLOR%b$ENDCOLOR\n" "$1"; | |
} | |
export CERT_FOLDER="$(pwd)/certs" | |
export DOMAIN="test.com" |
#!/bin/sh | |
IFS=$'\t' | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' # No Color | |
TESTCASES=$(cat <<-END | |
[ | |
{"path": "XX", "expected": "/XX"}, | |
{"path": "XXX", "expected": "/XXX"}, |
ARG IMAGE=registry.redhat.io/3scale-amp2/apicast-gateway-rhel8:3scale2.10 | |
FROM ${IMAGE} | |
USER root | |
WORKDIR /opt/app-root/src/ | |
RUN dnf install -y perl-App-cpanminus gcc git | |
ENV LUA_PATH="/usr/lib64/lua/5.1/?.lua;/usr/local/share/lua/5.1/?.lua" |
FROM quay.io/centos/centos:centos8.3.2011 | |
RUN dnf install -y rpm-build | |
RUN dnf install -y annobin-annocheck dos2unix gcc git make pcre-devel | |
RUN dnf install -y perl perl-File-Temp systemtap-sdt-devel | |
RUN dnf install -y 'dnf-command(config-manager)' | |
RUN yum config-manager --add-repo http://packages.dev.3sca.net/dev_packages_3sca_net.repo \ | |
&& sed -i 's/\.net$/.net\/CVE/g' /etc/yum.repos.d/dev_packages_3sca_net.repo | |
RUN yum install -y openresty-pcre-devel openresty-zlib-devel openssl-devel opentracing-cpp-devel openresty-pcre-devel |
2021-02-11T10:52:01.100034Z warn ads ADS:RDS: ACK ERROR router~10.244.0.2~istio-ingressgateway-55948cbc7d-f8nfk.istio-system~istio-system.svc.cluster.local-5 Internal:Proto constraint validation failed (RouteConfigurationValidationError.VirtualHosts[i]: ["embedded message failed validation"] | caused by VirtualHostValidationError.Routes[i]: ["embedded message failed validation"] | caused by RouteValidationError.Route: ["embedded message failed validation"] | caused by RouteActionValidationError.WeightedClusters: ["embedded message failed validation"] | caused by WeightedClusterValidationError.Clusters: ["value must contain at least " '\x01' " item(s)"]): name: "http.80" | |
virtual_hosts { | |
name: "foo.com:80" | |
domains: "foo.com" | |
domains: "foo.com:*" | |
routes { | |
match { | |
prefix: "/" | |
case_sensitive { | |
value: true |
use log::trace; | |
use proxy_wasm::traits::*; | |
use proxy_wasm::types::*; | |
use std::time::Duration; | |
#[no_mangle] | |
pub fn _start() { | |
proxy_wasm::set_log_level(LogLevel::Trace); | |
proxy_wasm::set_http_context(|_, _| -> Box<dyn HttpContext> { Box::new(HttpAuthRandom) }); | |
} |