From 7f36f8c9fc49f834f45249c9c86610b054a9ac19 Mon Sep 17 00:00:00 2001 From: Cara Wang Date: Jun 23 2020 08:31:24 +0000 Subject: add the dockerfile --- diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f2e2576 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM registry.access.redhat.com/rhel7:latest +LABEL \ + name="testing application" \ + vendor="testing developers" \ + license="GPLv2+" \ + build-date="" +COPY run.sh /tmp +ENTRYPOINT ["/tmp/run.sh"] +CMD ["/bin/sleep","360000"] diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..c8d7f3e --- /dev/null +++ b/run.sh @@ -0,0 +1,5 @@ +#!/bin/bash +echo "START:I am doing nothing, just for testing" +echo "MIDDLE: Sleep 10s for a while" +sleep 10 +echo "END: I am saying goodbye"