File tree Expand file tree Collapse file tree 4 files changed +36
-1
lines changed
Expand file tree Collapse file tree 4 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,15 @@ RUN apt install -y --no-install-recommends \
3838 libcurl4-openssl-dev \
3939 libzstd-dev \
4040 automake \
41- autoconf
41+ autoconf \
42+ libtool \
43+ libgeos-dev \
44+ proj-bin \
45+ libproj-dev \
46+ libprotobuf-c-dev \
47+ protobuf-c-compiler \
48+ gdal-bin \
49+ libgdal-dev
4250#{{ if env.arch == "aarch64" then ( -}}
4351# ""
4452#{{ ) else "" end -}}
@@ -93,6 +101,14 @@ RUN cd /usr/src/citus; \
93101 make PG_CONFIG=/var/lib/postgresql/bin/pg_config -j `expr $(nproc) - 2` >/dev/null; \
94102 make install PG_CONFIG=/var/lib/postgresql/bin/pg_config;
95103
104+ ADD postgis /usr/src/postgis
105+ RUN cd /usr/src/postgis; \
106+ git checkout {{ .postgis }}; \
107+ PG_CONFIG=/var/lib/postgresql/bin/pg_config ./autogen.sh ; \
108+ PG_CONFIG=/var/lib/postgresql/bin/pg_config ./configure ; \
109+ make PG_CONFIG=/var/lib/postgresql/bin/pg_config -j `expr $(nproc) - 2` >/dev/null; \
110+ make install PG_CONFIG=/var/lib/postgresql/bin/pg_config;
111+
96112RUN cd /var/lib/postgresql; \
97113 tar czhvf lib.tar.gz `find . -type f | xargs ldd 2>/dev/null | grep "=>" | cut -d ">" -f 2 | cut -d "(" -f 1 | sort -u`
98114
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ build_image()
4343 cp -r ../../source_code/pg_auto_failover " $dir /"
4444 cp -r ../../source_code/pg_dirtyread " $dir /"
4545 cp -r ../../source_code/citus " $dir /"
46+ cp -r ../../source_code/postgis " $dir /"
4647
4748 cd " $dir "
4849 echo " build docker image $image ..."
Original file line number Diff line number Diff line change 77 "failover" : " v1.6.4" ,
88 "dirtyread" : " 2.4" ,
99 "citus" : " v10.2.8" ,
10+ "postgis" : " 3.3.1" ,
1011 "name" : " radondb-postgresql" ,
1112 "version" : " v1.0.0" ,
1213 "arches" : [
2223 "failover" : " v1.6.4" ,
2324 "dirtyread" : " 2.4" ,
2425 "citus" : " v11.1.3" ,
26+ "postgis" : " 3.3.1" ,
2527 "name" : " radondb-postgresql" ,
2628 "version" : " v1.0.0" ,
2729 "arches" : [
3739 "failover" : " v1.6.4" ,
3840 "dirtyread" : " 2.4" ,
3941 "citus" : " v11.1.3" ,
42+ "postgis" : " 3.3.1" ,
4043 "name" : " radondb-postgresql" ,
4144 "version" : " v1.0.0" ,
4245 "arches" : [
5255 "failover" : " v2.0" ,
5356 "dirtyread" : " 2.4" ,
5457 "citus" : " v11.1.3" ,
58+ "postgis" : " 3.3.1" ,
5559 "name" : " radondb-postgresql" ,
5660 "version" : " v1.0.0" ,
5761 "arches" : [
Original file line number Diff line number Diff line change 7070 echo " download citus success"
7171fi
7272
73+ # postgis
74+ if [ -d postgis ]
75+ then
76+ echo " postgis exists, skip download."
77+ else
78+ git clone https://github.com/postgis/postgis.git
79+ if [ $? -ne 0 ]
80+ then
81+ echo " download postgis failed"
82+ exit 1
83+ fi
84+ echo " download postgis success"
85+ fi
86+
7387exit 0
You can’t perform that action at this time.
0 commit comments