From d1b566034b06f0a1baa8f07ceefb384de5f070e1 Mon Sep 17 00:00:00 2001 From: Ed Smith Date: Mon, 16 Aug 2021 15:24:14 +0100 Subject: [PATCH] Capture the exitcode test as a docker compose recipe --- docker/exitcode-test.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docker/exitcode-test.yaml diff --git a/docker/exitcode-test.yaml b/docker/exitcode-test.yaml new file mode 100644 index 00000000..3578c3be --- /dev/null +++ b/docker/exitcode-test.yaml @@ -0,0 +1,21 @@ +version: '3.6' + +services: + sut: + build: + context: .. + dockerfile: docker/Dockerfile + volumes: + - type: bind + source: ../tests/exit_test + target: /recipes + tmpfs: + - /scratch:exec + environment: + - TMP=/scratch + cap_add: + - SYS_PTRACE + security_opt: + - label:disable + working_dir: /recipes/ + entrypoint: ./exit_test.sh