Skip to content

Commit

Permalink
upd dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
exe-dealer committed Nov 14, 2019
1 parent b34e977 commit 19349f1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 15 additions & 5 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 19349f1

Please sign in to comment.