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