diff --git a/clr_test/db-updater/Dockerfile b/clr_test/db-updater/Dockerfile index d1b0cc799..31c171aa9 100644 --- a/clr_test/db-updater/Dockerfile +++ b/clr_test/db-updater/Dockerfile @@ -3,8 +3,10 @@ FROM alpine ADD combined_update_ddl.sql /init.sql ADD init.sh /init.sh +USER root + RUN apk add --update --no-cache postgresql-client RUN chmod +x init.sql RUN find . -name "*.sh" | xargs sed -i 's/\r$//' -CMD [ "sh", "-c", "./init.sh" ] \ No newline at end of file +CMD [ "./init.sh" ] \ No newline at end of file diff --git a/clr_test/db-updater/init.sh b/clr_test/db-updater/init.sh index 44561ca77..32e6d0f3c 100644 --- a/clr_test/db-updater/init.sh +++ b/clr_test/db-updater/init.sh @@ -1,4 +1,4 @@ -#! /bin/sh +#!/bin/sh echo "PSQL version: " && psql --version