File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,20 @@ FROM postgres:${PG_VERSION}-alpine
2
2
3
3
ENV LANG=C.UTF-8 PGDATA=/pg/data
4
4
5
- RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.6/main' > /etc/apk/repositories && \
6
- echo 'http://dl-cdn.alpinelinux.org/alpine/v3.6/community' >> /etc/apk/repositories && \
5
+ RUN if [ "${CHECK_CODE}" = "clang" ] ; then \
6
+ apk --no-cache add clang-analyzer --repository http://dl-3.alpinelinux.org/alpine/edge/main; \
7
+ fi
8
+
9
+ RUN if [ "${CHECK_CODE}" = "cppcheck" ] ; then \
10
+ apk --no-cache add cppcheck --repository http://dl-cdn.alpinelinux.org/alpine/v3.6/community \
11
+ fi
12
+
13
+ RUN if [ "${CHECK_CODE}" = "false" ] ; then \
7
14
apk --no-cache add python3 gcc make musl-dev cppcheck && \
8
- apk --no-cache add clang-analyzer --repository http://dl-3.alpinelinux.org/alpine/edge/main/ && \
9
15
pip3 install testgres && \
10
- mkdir -p /pg/data && \
16
+ fi
17
+
18
+ RUN mkdir -p /pg/data && \
11
19
mkdir /pg/pg_pathman && \
12
20
chown postgres:postgres ${PGDATA} && \
13
21
chmod a+rwx /usr/local/lib/postgresql && \
You can’t perform that action at this time.
0 commit comments