mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-27 18:10:37 +00:00
postgis fix
This commit is contained in:
@@ -139,16 +139,19 @@ RUN wget https://download.osgeo.org/postgis/source/postgis-3.3.3.tar.gz -O postg
|
||||
RUN wget https://github.com/pgRouting/pgrouting/archive/v3.4.2.tar.gz -O pgrouting.tar.gz && \
|
||||
echo "cac297c07d34460887c4f3b522b35c470138760fe358e351ad1db4edb6ee306e pgrouting.tar.gz" | sha256sum --check && \
|
||||
mkdir pgrouting-src && cd pgrouting-src && tar xvzf ../pgrouting.tar.gz --strip-components=1 -C . && \
|
||||
mkdir build && cd build && \
|
||||
cmake -DCMAKE_BUILD_TYPE=Release .. && \
|
||||
make -j $(getconf _NPROCESSORS_ONLN) && \
|
||||
make -j $(getconf _NPROCESSORS_ONLN) install && \
|
||||
for pg_version in v14 v15 v16; do \
|
||||
mkdir build && cd build && \
|
||||
prefix="/usr/local/pgsql-${pg_version}/" ;\
|
||||
export PATH="${prefix}/bin:$PATH" ;\
|
||||
cmake -DCMAKE_BUILD_TYPE=Release .. && \
|
||||
make -j $(getconf _NPROCESSORS_ONLN) && \
|
||||
make -j $(getconf _NPROCESSORS_ONLN) install && \
|
||||
extension_dir="$prefix/share/extension"; \
|
||||
echo 'trusted = true' >> $extension_dir/pgrouting.control && \
|
||||
find "$prefix" -type f | sed "s|^${prefix}||" > /after.txt &&\
|
||||
cp $extension_dir/pgrouting.control /extensions/postgis && \
|
||||
sort -o /before.txt /before.txt && sort -o /after.txt /after.txt && \
|
||||
comm -13 /before.txt /after.txt | tar --directory=$prefix --zstd -cf /extensions/postgis.tar.zst -T - ;\
|
||||
cd .. ;\
|
||||
rm -r build ;\
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user