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

Issue23 #25

Merged
2 commits merged into from
Nov 17, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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