From 19349f1a417cee07c7a13f0c65abce3d2e2b3a15 Mon Sep 17 00:00:00 2001 From: Vladislav Nezhutin Date: Thu, 14 Nov 2019 20:43:34 +0600 Subject: [PATCH] upd dockerfile --- dockerfile | 20 +++++++++++++++----- test.sh | 2 +- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/dockerfile b/dockerfile index 3af6dcd..f036af3 100644 --- a/dockerfile +++ b/dockerfile @@ -10,7 +10,6 @@ RUN set -x \ && apk add --no-cache --virtual .build-deps \ --repositories-file /dev/null \ --repository https://mirror.ps.kz/alpine/v3.10/main \ - --repository https://mirror.ps.kz/alpine/v3.10/community \ build-base \ linux-headers \ bison \ @@ -36,15 +35,26 @@ RUN set -x \ --with-llvm \ && make \ && make install \ + && apk del .build-deps \ + && rm -r /tmp/* \ \ - && apk add --no-cache \ + && apk add --no-cache --virtual .pg-runtime-deps \ --repositories-file /dev/null \ --repository https://mirror.ps.kz/alpine/v3.10/main \ - --repository https://mirror.ps.kz/alpine/v3.10/community \ - libxml2 libxslt icu openssl llvm8 \ - build-base clang + libxml2 \ + libxslt \ + icu \ + openssl \ + llvm8 RUN set -x \ + && apk add --no-cache --virtual .build-deps \ + --repositories-file /dev/null \ + --repository https://mirror.ps.kz/alpine/v3.10/main \ + build-base \ + clang \ + llvm8-dev \ + \ && su postgres sh -c initdb \ && echo wal_level=logical >> $PGDATA/postgresql.conf diff --git a/test.sh b/test.sh index de1d0b8..c5cc144 100755 --- a/test.sh +++ b/test.sh @@ -1,4 +1,4 @@ #!/bin/sh set -e docker build --tag pg_json_decoding_test . -docker run --rm -it -v "$PWD":/src:ro pg_json_decoding_test +docker run --rm -v "$PWD":/src:ro pg_json_decoding_test