File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -38,13 +38,23 @@ RUN apt-get update \
3838 && apt-get install -y \
3939 postgresql-$PG_MAJOR=$PG_VERSION \
4040 postgresql-contrib-$PG_MAJOR=$PG_VERSION \
41- && rm -rf /var/lib/apt/lists/*
41+ postgresql-server-dev-$PG_MAJOR=$PG_VERSION
42+
43+ # Install cstore_fdw and dependencies
44+ RUN apt-get install -y build-essential pgxnclient
45+ RUN apt-get install -y protobuf-c-compiler libprotobuf-c0-dev && pgxn install cstore_fdw
46+ # RUN echo 'shared_preload_libraries = \'cstore_fdw\'' > /usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample
47+
48+ RUN rm -rf /var/lib/apt/lists/*
4249
4350# make the sample config easier to munge (and "correct by default")
4451RUN mv -v /usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample /usr/share/postgresql/ \
4552 && ln -sv ../postgresql.conf.sample /usr/share/postgresql/$PG_MAJOR/ \
4653 && sed -ri "s!^#?(listen_addresses)\s *=\s *\S +.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample
4754
55+ # Extension settings
56+ RUN echo "shared_preload_libraries = 'cstore_fdw'" >> /usr/share/postgresql/postgresql.conf.sample
57+
4858RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
4959
5060ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
You can’t perform that action at this time.
0 commit comments