mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-17 14:21:20 +00:00
Removed unnecessary image creation check. set -e would already fail the script if docker build ends with an error
This commit is contained in:
@@ -18,13 +18,6 @@ echo "Building $dockerImage..."
|
||||
|
||||
docker build -t $dockerImage .
|
||||
|
||||
echo "Testing $dockerImage..."
|
||||
|
||||
if ! docker inspect "$dockerImage" &> /dev/null; then
|
||||
echo $'\timage does not exist!'
|
||||
false
|
||||
fi
|
||||
|
||||
# running tests
|
||||
docker run --rm "$dockerImage" [ -d /opt/alfresco-solr/solr ] || (echo "solr dir does not exist" && exit 1)
|
||||
docker run --rm "$dockerImage" [ -d /opt/alfresco-solr/data/content ] || (echo "content dir does not exist" && exit 1)
|
||||
|
Reference in New Issue
Block a user