From 6456c8a0a85cabca108a486ff7f8c0d6104f5b9a Mon Sep 17 00:00:00 2001 From: kavithai Date: Thu, 2 Feb 2023 14:36:04 -0500 Subject: [PATCH] Update dockerfile to add permissions for sql_data_init.sh When the ACI spins up, it doesn't have permission to run the sql init script. Adding permissions in the docker file --- byos/containers/deploy/dataload/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/byos/containers/deploy/dataload/Dockerfile b/byos/containers/deploy/dataload/Dockerfile index 2842cb4..8aca476 100644 --- a/byos/containers/deploy/dataload/Dockerfile +++ b/byos/containers/deploy/dataload/Dockerfile @@ -4,4 +4,5 @@ COPY data_load data_load COPY sql_data_init.sh . COPY MYDrivingDB.sql . -ENTRYPOINT [ "/bin/bash","-c", "./sql_data_init.sh -s $SQLFQDN -u $SQLUSER -p $SQLPASS -d $SQLDB"] \ No newline at end of file +RUN chmod +x ./sql_data_init.sh +ENTRYPOINT [ "/bin/bash","-c", "./sql_data_init.sh -s $SQLFQDN -u $SQLUSER -p $SQLPASS -d $SQLDB"]