diff --git a/Dockerfile b/Dockerfile index 103cd66..5da82f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -130,6 +130,8 @@ RUN ln -s /opt/etc/httpd/conf.d/ports.conf /etc/httpd/conf.d/ports.conf && \ ln -s /opt/comanage/comanage-registry-1.0.5/app/webroot /var/www/html/registry && \ rm /etc/httpd/conf/httpd.conf && \ ln -s /opt/etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf && \ + mkdir -p /opt/comanage/comanage-registry-$version/local/tmp/cache/persistent && \ + chmod 777 /opt/comanage/comanage-registry-$version/local/tmp/cache/persistent && \ /opt/autoexec/bin/onbuild.sh diff --git a/tests/image.bats b/tests/image.bats index ba27768..a40d90c 100644 --- a/tests/image.bats +++ b/tests/image.bats @@ -32,3 +32,9 @@ load ../common skip docker run -i $maintainer/$imagename ls -la /opt/autoexec/bin/firstrun.sh } + +@test "Cache directory created" { + docker run -i $maintainer/$imagename find /opt/comanage/comanage-registry-1.0.5/app/tmp/cache/persistent/ +} + +