-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from siemens/develop
Develop
- Loading branch information
Showing
4 changed files
with
119 additions
and
6 deletions.
There are no files selected for viewing
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# requires docker compose plugin (=v2) | ||
# | ||
# wget -q --no-cache -O - https://github.com/siemens/edgeshark/raw/main/deployments/wget/docker-compose.yaml | docker compose -f - up | ||
name: 'edgeshark' | ||
services: | ||
gostwire: | ||
image: 'ghcr.io/siemens/ghostwire' | ||
pull_policy: always | ||
restart: 'unless-stopped' | ||
read_only: true | ||
entrypoint: | ||
- "/gostwire" | ||
- "--http=[::]:5000" | ||
- "--brand=Edgeshark" | ||
- "--brandicon=PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA2LjM1IDYuMzUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUuNzMgNC41M2EuNC40IDAgMDEtLjA2LS4xMmwtLjAyLS4wNC0uMDMuMDNjLS4wNi4xMS0uMDcuMTItLjEuMS0uMDEtLjAyIDAtLjAzLjAzLS4xbC4wNi0uMS4wNC0uMDVjLjAzIDAgLjA0LjAxLjA2LjA5bC4wNC4xMmMuMDMuMDUuMDMuMDcgMCAuMDhoLS4wMnptLS43NS0uMDZjLS4wMi0uMDEtLjAxLS4wMy4wMS0uMDUuMDMtLjAyLjA1LS4wNi4w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E1LS41IDAtLjU3LjA1LjE4LS4xMi40NS0uMDMuNThsLjAzLS4wMXptMy40My0uMjJjLjIyLS4xMyAwLS42Ni0uMjItLjM1LS4xLjE1IDAgLjQyLjIyLjM1em0uMzQtLjA2Yy4yOCAwIC4xOC0uNTMtLjA5LS4zNC0uMTIuMDctLjEyLjQyLjA5LjM0em0uNDQtLjAxYy0uMDEtLjEuMTItLjM4LS4wMS0uNC0uMDIuMS0uMTcuNDEgMCAuNHptLTEuMjYtLjAyYzAtLjEzLjAyLS41NS0uMTQtLjUuMDguMTItLjAyLjUxLjE0LjV6Ii8+PHBhdGggZD0iTTUuNTMgMy4yN2wtLjI1LjAzYS41Ny41NyAwIDAxLS4xMy4yNGwtLjA2LS4yLS4zNy4wNGMwIC4xLS4wMy4xOS0uMS4yOGwtLjEzLS4yNC0uMjIuMDNzLS4xNS4yOC0uMTUuNDYuMDcuNDYuMzcuNTNoLjAzbC4xNS0uMjUuMDguMjguMjUuMDIuMTItLjJjLjA1LjEuMS4yLjEyLjJsLjMuMDJ2LS4wOHMtLjEyLS4yNS0uMTItLjM5Yy0uMDItLjI3LjExLS43Ny4xMS0uNzd6IiBmaWxsLW9wYWNpdHk9Ii41Ii8+PC9zdmc+" | ||
user: "65534" | ||
# In order to set only exactly a specific set of capabilities without | ||
# any additional Docker container default capabilities, we need to drop | ||
# "all" capabilities. Regardless of the order (there ain't one) of YAML | ||
# dictionary keys, Docker carries out dropping all capabilities first, | ||
# and only then adds capabilities. See also: | ||
# https://stackoverflow.com/a/63219871. | ||
cap_drop: | ||
- ALL | ||
cap_add: | ||
- CAP_SYS_ADMIN # change namespaces | ||
- CAP_SYS_CHROOT # change mount namespaces | ||
- CAP_SYS_PTRACE # access nsfs namespace information | ||
- CAP_DAC_READ_SEARCH # access/scan /proc/[$PID]/fd itself | ||
- CAP_DAC_OVERRIDE # access container engine unix domain sockets without being rude, erm, root. | ||
- CAP_NET_RAW # pingin' 'round | ||
- CAP_NET_ADMIN # 'nuff tables | ||
security_opt: | ||
# The default Docker container AppArmor profile blocks namespace | ||
# discovery, due to reading from /proc/$PID/ns/* is considered to be | ||
# ptrace read/ready operations. | ||
- apparmor:unconfined | ||
# Essential since we need full PID view. | ||
pid: 'host' | ||
cgroup: host | ||
networks: | ||
99-ghost-in-da-edge: | ||
priority: 100 | ||
|
||
edgeshark: | ||
image: 'ghcr.io/siemens/packetflix' | ||
pull_policy: 'always' | ||
read_only: true | ||
restart: 'unless-stopped' | ||
entrypoint: | ||
- "/packetflix" | ||
- "--port=5001" | ||
- "--discovery-service=gostwire.ghost-in-da-edge" | ||
- "--gw-port=5000" | ||
- "--proxy-discovery" | ||
|
||
ports: | ||
- "127.0.0.1:5001:5001" | ||
|
||
# Run as non-root user (baked into the meta data of the image anyway). | ||
user: "65534" | ||
|
||
# In order to set only exactly a specific set of capabilities without | ||
# any additional Docker container default capabilities, we need to drop | ||
# "all" capabilities. Regardless of the order (there ain't one) of YAML | ||
# dictionary keys, Docker carries out dropping all capabilities first, | ||
# and only then adds capabilities. See also: | ||
# https://stackoverflow.com/a/63219871. | ||
cap_drop: | ||
- ALL | ||
cap_add: | ||
- CAP_SYS_ADMIN # change namespaces | ||
- CAP_SYS_CHROOT # change mount namespaces | ||
- CAP_SYS_PTRACE # access nsfs namespace information | ||
- CAP_NET_ADMIN # allow dumpcap to control promisc. mode | ||
- CAP_NET_RAW # capture raw packets, and not that totally burnt stuff | ||
security_opt: | ||
# The default Docker container AppArmor profile blocks namespace | ||
# discovery, due to reading from /proc/$PID/ns/* is considered to be | ||
# ptrace read/ready operations. | ||
- apparmor:unconfined | ||
|
||
# Essential since we need full PID view. | ||
pid: 'host' | ||
|
||
networks: | ||
99-ghost-in-da-edge: | ||
priority: 100 | ||
|
||
networks: | ||
99-ghost-in-da-edge: | ||
name: ghost-in-da-edge | ||
internal: false | ||
|
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