Files
aman143kri d13230ced8 Added docker testcase for T1609.yaml
Fairly straight forward way to execute into a container.

Details:
The test was created for kubernetes and mitre framework also mentioned about docker. So created a second test for the same.

Testing:
Tested using ubuntuas the base image. If using just Docker, run the container(already present in the script) and execute the testcase.

It may take up to a minute to run due to image creation. If it hangs for longer than a minute, something went wrong.

Associated Issues:
None
2022-12-15 19:57:12 -08:00

5 lines
183 B
Docker

FROM ubuntu
ARG DEBIAN_FRONTEND=noninteractive
RUN echo "1" > /tmp/output.txt && \
echo ' bin/sh -c "while true; do sleep 30;done;"' > /tmp/script.sh && chmod +x /tmp/script.sh