From 96a6f4ced65c0b3a1334d8c5b5ad6516e3ace21c Mon Sep 17 00:00:00 2001 From: Jim Van Fleet Date: Fri, 12 Aug 2016 11:45:44 -0400 Subject: [PATCH] Getting started with image intentions --- Dockerfile | 1 + tests/image.bats | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index a567e14..a4f57fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,7 @@ RUN yum -y install \ && rm /etc/httpd/conf.d/userdir.conf \ && rm /etc/httpd/conf.d/welcome.conf +ONBUILD COPY httpd-foreground /usr/local/bin/ diff --git a/tests/image.bats b/tests/image.bats index b52fe41..bbff398 100755 --- a/tests/image.bats +++ b/tests/image.bats @@ -5,4 +5,8 @@ load ../common @test "Concludes first-run experience" { result="$(docker run -i $maintainer/$imagename find /tmp/firsttimerunning)" [ "$result" != '' ] +} + +@test "Contains ONBUILD mechanism" { + grep ONBUILD Dockerfile } \ No newline at end of file