Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 063909e

Browse files
committed
fix incremental container build
1 parent fa309d4 commit 063909e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,19 @@ RUN cd /pg && \
3232
./configure --enable-cassert --enable-debug --prefix=/pg/install && \
3333
make -j 4 install
3434

35-
RUN mkdir /pg/data
3635
ENV PATH /pg/install/bin:$PATH
3736
ENV PGDATA /pg/data
37+
RUN mkdir PGDATA
3838

3939
# Here we can insert some ENV var to invalidate subsequent layers
4040

4141
RUN cd /pg/postgres_cluster/contrib/raftable && make install
4242

4343
RUN mkdir /pg/mmts
4444
COPY ./ /pg/mmts/
45-
RUN cd /pg/mmts && USE_PGXS=1 RAFTABLE_PATH=/pg/postgres_cluster/contrib/raftable make install
45+
ENV RAFTABLE_PATH /pg/postgres_cluster/contrib/raftable
46+
ENV USE_PGXS 1
47+
RUN cd /pg/mmts && make clean && make install
4648

4749
ENTRYPOINT ["/pg/mmts/tests2/docker-entrypoint.sh"]
4850

0 commit comments

Comments
 (0)