sparse/docker-compose.yml
Andrew Rioux 3257dfced0 build: adding to Cargo make config
Adding default tasks and setup task to run when container is made
2023-05-06 23:35:38 -04:00

46 lines
1.2 KiB
YAML

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