Fix if
This commit is contained in:
parent
bb1b8efd9c
commit
29b283a387
|
@ -2,7 +2,7 @@
|
||||||
# -*- mode: sh; -*-
|
# -*- mode: sh; -*-
|
||||||
|
|
||||||
# File: before_install.sh
|
# File: before_install.sh
|
||||||
# Time-stamp: <2018-02-15 14:59:13>
|
# Time-stamp: <2018-02-15 15:13:20>
|
||||||
# Copyright (C) 2018 Sergei Antipov
|
# Copyright (C) 2018 Sergei Antipov
|
||||||
# Description:
|
# Description:
|
||||||
|
|
||||||
|
@ -21,10 +21,9 @@ docker version
|
||||||
# Pull docker image or build it
|
# Pull docker image or build it
|
||||||
if [ -f tests/Dockerfile.${DISTRIBUTION}_${DIST_VERSION} ]
|
if [ -f tests/Dockerfile.${DISTRIBUTION}_${DIST_VERSION} ]
|
||||||
then
|
then
|
||||||
sudo docker build --rm=true --file=tests/Dockerfile.${DISTRIBUTION}_${DIST_VERSION}
|
docker build --rm=true --file=tests/Dockerfile.${DISTRIBUTION}_${DIST_VERSION} --tag ${DISTRIBUTION}:${DIST_VERSION} tests
|
||||||
--tag ${DISTRIBUTION}:${DIST_VERSION} tests
|
|
||||||
else
|
else
|
||||||
sudo docker pull ${DISTRIBUTION}:${DIST_VERSION}
|
docker pull ${DISTRIBUTION}:${DIST_VERSION}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ln -s ${PWD} tests/greendayonfire.mongodb
|
ln -s ${PWD} tests/greendayonfire.mongodb
|
||||||
|
|
Loading…
Reference in New Issue