moved sh files to root

This commit is contained in:
cagache
2018-06-28 15:10:11 +03:00
parent 4196c899c5
commit 85d1c74807
3 changed files with 0 additions and 0 deletions

View File

@@ -1,13 +0,0 @@
#!/bin/bash
echo $IMAGES_TO_BE_DELETED
echo "List all images:"
docker images -a
docker_images_list=$(docker images | grep $IMAGES_TO_BE_DELETED | awk '{print $3}' | uniq)
if [ "$docker_images_list" == "" ]; then
echo "No docker images on the agent"
else
echo "Clearing images: $docker_images_list"
docker rmi -f $docker_images_list
fi

View File

@@ -1,31 +0,0 @@
#!/bin/bash
set -e # exit if commands fails
set -x # trace what gets exe
docker info
docker-compose --version
echo "Starting Alfresco with AGS amps applied in Docker container"
docker-compose ps
docker-compose up -d
WAIT_INTERVAL=1
COUNTER=0
TIMEOUT=300
t0=`date +%s`
echo "Waiting for alfresco to start"
until $(curl --output /dev/null --silent --head --fail http://localhost:8080/alfresco) || [ "$COUNTER" -eq "$TIMEOUT" ]; do
printf '.'
sleep $WAIT_INTERVAL
COUNTER=$(($COUNTER+$WAIT_INTERVAL))
done
if (("$COUNTER" < "$TIMEOUT")) ; then
t1=`date +%s`
delta=$((($t1 - $t0)/60))
echo "Alfresco Started in $delta minutes"
else
echo "Waited $COUNTER seconds"
echo "Alfresco Could not start in time."
exit 1
fi

View File

@@ -1,7 +0,0 @@
#!/bin/bash
set -e # exit if commands fails
set -x # trace what gets exe
docker-compose ps
docker-compose kill
docker-compose rm -fv