Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Merge pull request #19 from docker/cache-dir-perms
Browse files Browse the repository at this point in the history
Adding cache directory and perms setting
  • Loading branch information
Jim Van Fleet committed Sep 22, 2016
2 parents 06a3837 + 241e2b1 commit 541a6ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
6 changes: 6 additions & 0 deletions tests/image.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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/
}


0 comments on commit 541a6ac

Please sign in to comment.