summaryrefslogtreecommitdiffstats
path: root/auth/docker
diff options
context:
space:
mode:
Diffstat (limited to 'auth/docker')
-rw-r--r--auth/docker/drun.sh26
1 files changed, 11 insertions, 15 deletions
diff --git a/auth/docker/drun.sh b/auth/docker/drun.sh
index 775c0c45..179a7da8 100644
--- a/auth/docker/drun.sh
+++ b/auth/docker/drun.sh
@@ -2,7 +2,7 @@
. d.props
if [ "$1" == "" ]; then
- AAF_COMPONENTS=`ls ../aaf_${VERSION}/bin | grep -v '\.'`
+ AAF_COMPONENTS=`ls -r ../aaf_${VERSION}/bin | grep -v '\.'`
else
AAF_COMPONENTS=$1
fi
@@ -18,19 +18,15 @@ for AAF_COMPONENT in ${AAF_COMPONENTS}; do
"fs") PORTMAP="80:8096";;
esac
-# if [ "`docker container ls | grep aaf_$AAF_COMPONENT:$VERSION`" == "" ]; then
- echo Starting aaf_$AAF_COMPONENT...
- docker run \
- -d \
- --name aaf_$AAF_COMPONENT \
- --hostname="$HOSTNAME" \
- --add-host="$CASS_HOST" \
- --publish $PORTMAP \
- --mount type=bind,source=$CONF_ROOT_DIR,target=/opt/app/osaaf \
- --link aaf_cass:cassandra \
- ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION}
-# else
- #echo docker container start -ia aaf_$AAF_COMPONENT
-# fi
+ echo Starting aaf_$AAF_COMPONENT...
+ docker run \
+ -d \
+ --name aaf_$AAF_COMPONENT \
+ --hostname="$HOSTNAME" \
+ --add-host="$CASS_HOST" \
+ --publish $PORTMAP \
+ --mount type=bind,source=$CONF_ROOT_DIR,target=/opt/app/osaaf \
+ --link aaf_cass:cassandra \
+ ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION}
done
# --add-host="$HOSTNAME:$HOST_IP" \