File tree 4 files changed +36
-1
lines changed
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 \
38
38
libcurl4-openssl-dev \
39
39
libzstd-dev \
40
40
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
42
50
#{{ if env.arch == "aarch64" then ( -}}
43
51
# ""
44
52
#{{ ) else "" end -}}
@@ -93,6 +101,14 @@ RUN cd /usr/src/citus; \
93
101
make PG_CONFIG=/var/lib/postgresql/bin/pg_config -j `expr $(nproc) - 2` >/dev/null; \
94
102
make install PG_CONFIG=/var/lib/postgresql/bin/pg_config;
95
103
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
+
96
112
RUN cd /var/lib/postgresql; \
97
113
tar czhvf lib.tar.gz `find . -type f | xargs ldd 2>/dev/null | grep "=>" | cut -d ">" -f 2 | cut -d "(" -f 1 | sort -u`
98
114
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ build_image()
43
43
cp -r ../../source_code/pg_auto_failover " $dir /"
44
44
cp -r ../../source_code/pg_dirtyread " $dir /"
45
45
cp -r ../../source_code/citus " $dir /"
46
+ cp -r ../../source_code/postgis " $dir /"
46
47
47
48
cd " $dir "
48
49
echo " build docker image $image ..."
Original file line number Diff line number Diff line change 7
7
"failover" : " v1.6.4" ,
8
8
"dirtyread" : " 2.4" ,
9
9
"citus" : " v10.2.8" ,
10
+ "postgis" : " 3.3.1" ,
10
11
"name" : " radondb-postgresql" ,
11
12
"version" : " v1.0.0" ,
12
13
"arches" : [
22
23
"failover" : " v1.6.4" ,
23
24
"dirtyread" : " 2.4" ,
24
25
"citus" : " v11.1.3" ,
26
+ "postgis" : " 3.3.1" ,
25
27
"name" : " radondb-postgresql" ,
26
28
"version" : " v1.0.0" ,
27
29
"arches" : [
37
39
"failover" : " v1.6.4" ,
38
40
"dirtyread" : " 2.4" ,
39
41
"citus" : " v11.1.3" ,
42
+ "postgis" : " 3.3.1" ,
40
43
"name" : " radondb-postgresql" ,
41
44
"version" : " v1.0.0" ,
42
45
"arches" : [
52
55
"failover" : " v2.0" ,
53
56
"dirtyread" : " 2.4" ,
54
57
"citus" : " v11.1.3" ,
58
+ "postgis" : " 3.3.1" ,
55
59
"name" : " radondb-postgresql" ,
56
60
"version" : " v1.0.0" ,
57
61
"arches" : [
Original file line number Diff line number Diff line change 70
70
echo " download citus success"
71
71
fi
72
72
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
+
73
87
exit 0
You can’t perform that action at this time.
0 commit comments