change to tty for docker exec
there is no TTY device for Jenkins Job
change to tty option for docker exec instead
Issue-ID: POLICY-2541
Change-Id: I4b33332e53ff2119e3e2846d96c8b3309a0420d4
Signed-off-by: Taka Cho <takamune.cho@att.com>
diff --git a/plans/policy/pap/setup.sh b/plans/policy/pap/setup.sh
index a5350b2..5b06049 100644
--- a/plans/policy/pap/setup.sh
+++ b/plans/policy/pap/setup.sh
@@ -40,8 +40,8 @@
docker-compose -f ${WORKSPACE}/scripts/policy/docker-compose-pap.yml run --rm start_dependencies
#Configure the database
-docker exec -it mariadb chmod +x /docker-entrypoint-initdb.d/db.sh
-docker exec -it mariadb /docker-entrypoint-initdb.d/db.sh
+docker exec --tty mariadb chmod +x /docker-entrypoint-initdb.d/db.sh
+docker exec --tty mariadb /docker-entrypoint-initdb.d/db.sh
# now bring everything else up
docker-compose -f ${WORKSPACE}/scripts/policy/docker-compose-pap.yml run --rm start_all