Skip to content

Commit

Permalink
chore: fixes Wasm path for EnvoyExample, removes detached (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
M4tteoP authored Oct 21, 2023
1 parent 02eda47 commit 900626b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ FTW_INCLUDE=920410 go run mage.go ftw

## Example: Spinning up the coraza-wasm-filter for manual tests

Once the filter is built, via the commands `mage runEnvoyExample`, `mage reloadEnvoyExample`, and `mage teardownEnvoyExample` you can spin up, test, and tear down the test environment.
Once the filter is built, via the commands `go run mage.go runEnvoyExample`, `go run mage.go reloadEnvoyExample`, and `go run mage.go teardownEnvoyExample` you can spin up, test, and tear down the test environment.
Envoy with the coraza-wasm filter will be reachable at `localhost:8080`.
The filter is configured with the CRS loaded working in Anomaly Scoring mode.
For details and locally tweaking the configuration refer to [@demo-conf](./wasmplugin/rules/coraza-demo.conf) and [@crs-setup-demo-conf](./wasmplugin/rules/crs-setup-demo.conf).
Expand Down
2 changes: 1 addition & 1 deletion example/envoy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:
- --log-path
- /home/envoy/logs/envoy.log
volumes:
- ../build:/build
- ../../build:/build
- .:/conf
- logs:/home/envoy/logs:rw
ports:
Expand Down
2 changes: 1 addition & 1 deletion magefiles/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func Ftw() error {

// RunEnvoyExample spins up the test environment of envoy, access at http://localhost:8080. Requires docker-compose.
func RunEnvoyExample() error {
return sh.RunWithV(map[string]string{"ENVOY_IMAGE": os.Getenv("ENVOY_IMAGE")}, "docker-compose", "--file", "example/envoy/docker-compose.yml", "up", "-d", "envoy-logs")
return sh.RunWithV(map[string]string{"ENVOY_IMAGE": os.Getenv("ENVOY_IMAGE")}, "docker-compose", "--file", "example/envoy/docker-compose.yml", "up")
}

// TeardownEnvoyExample tears down the test environment of envoy. Requires docker-compose.
Expand Down

0 comments on commit 900626b

Please sign in to comment.