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

Commit

Permalink
Merge pull request #25 from docker/issue23
Browse files Browse the repository at this point in the history
Issue23
  • Loading branch information
Jim Van Fleet authored Nov 17, 2016
2 parents 0997833 + 0f55a9a commit b22b4ab
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ RUN mkdir -p /tmp/comanage && cd /tmp/comanage && \
tar xf $VERSION.tar.gz && \
mv $COMANAGE_PREFIX-$VERSION /opt/comanage/. && \
ln -s /opt/comanage/$VERSION /opt/comanage/current && \
mkdir /var/cache/registry && \
ln -s /var/cache/registry /opt/comanage/$COMANAGE_PREFIX-$VERSION/local/tmp && \
# # Cleanup
rm -rf /tmp/comanage

Expand Down
12 changes: 8 additions & 4 deletions container_files/bin/configure_php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,14 @@ else
fi
date >> $log
echo "Preparing for cache" >> $log
mkdir -p /opt/comanage/comanage-registry-$VERSION/local/tmp/cache/persistent && \
mkdir -p /opt/comanage/comanage-registry-$VERSION/local/tmp/cache/models && \
chmod -R 777 /opt/comanage/comanage-registry-$VERSION/local/tmp/cache && \
chown -R apache:apache /opt/comanage/comanage-registry-$VERSION/local/tmp/cache && \
mkdir -p /var/cache/registry/cache/persistent && \
mkdir -p /var/cache/registry/cache/models && \
mkdir -p /var/cache/registry/logs && \
mkdir -p /var/cache/registry/sessions && \
mkdir -p /var/cache/registry/tests && \
chmod -R 700 /var/cache/registry && \
chown -R apache:apache /var/cache/registry && \
chown -R apache:apache /opt/comanage/comanage-registry-$VERSION/local
echo "Cache status: " >> $log
ls -la /opt/comanage/comanage-registry-$VERSION/local/tmp/cache >> $log

Expand Down
4 changes: 4 additions & 0 deletions tests/image.bats
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ load ../common
docker run -i $maintainer/$imagename find /opt/comanage/comanage-registry-$version
}

@test "COmanage cache link directory created" {
docker run -i $maintainer/$imagename find /opt/comanage/comanage-registry-$version/local/tmp -links 1

}
@test "Autoexec firstrun capability detected" {
docker run -i $maintainer/$imagename find /opt/autoexec/bin/firstrun.sh
}
Expand Down

0 comments on commit b22b4ab

Please sign in to comment.