sparse/docker-compose.yml
Andrew Rioux 8aab9be638
build: made it so dev containers can partly debug
symbol tables appear to be messed up and it doesn't work with async
Rust, so will try to refactor the code to be sync and see how it fares
2023-05-07 14:17:28 -04:00

46 lines
1.3 KiB
YAML

version: '3.8'
services:
build:
build:
context: .devcontainer
dockerfile: Dockerfile.alpine
volumes:
- ${CARGO_HOME}/registry:${CARGO_HOME}/registry
- /workspaces/sparse:/workspaces/sparse
working_dir: /workspaces/sparse
entrypoint: /usr/local/cargo/bin/cargo
tty: true
examples_bindshell_target:
build:
context: examples/secure-image
dockerfile: Dockerfile
volumes:
- ./target:/workspaces/sparse/target
command: /workspaces/sparse/target/debug/ex-bind-shell-backdoor
# privileged flag is for iptables, not for the backdoor
privileged: true
examples_bindshell_client:
image: alpine
volumes:
- ./target:/workspaces/sparse/target
command: /workspaces/sparse/target/debug/ex-bind-shell-client examples_bindshell_target:54248
examples_revshell_beacon:
build:
context: examples/secure-image
dockerfile: Dockerfile
volumes:
- ./target:/workspaces/sparse/target
command: /workspaces/sparse/target/debug/ex-revshell-beacon
# privileged flag is for iptables, not for the backdoor
privileged: true
examples_revshell_server:
image: alpine
volumes:
- ./target:/workspaces/sparse/target
expose:
- '54248/udp'
command: /workspaces/sparse/target/debug/ex-revshell-server