Remove -it from docker run on CI

This commit is contained in:
Ingvar Stepanyan
2022-01-13 17:54:29 +00:00
parent fc3074bb95
commit e5e285696f

View File

@@ -16,8 +16,15 @@
# License along with this library; if not, write to the Free Software # License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
if [[ -v CI ]]
then
DOCKER_INTERACTIVE_OPTS=""
else
DOCKER_INTERACTIVE_OPTS="-it"
fi
docker build -t web-gphoto2 - < Dockerfile docker build -t web-gphoto2 - < Dockerfile
docker run --rm -it \ docker run --rm $DOCKER_INTERACTIVE_OPTS \
-v $PWD:/src \ -v $PWD:/src \
-u $(id -u):$(id -g) \ -u $(id -u):$(id -g) \
web-gphoto2 \ web-gphoto2 \