-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add compile contrib * feat: add checks - create extension: hstore, uuid-ossp, xml2 * fix: minor changes * fix: use apt-get * fix: use sudo for apt-get
- Loading branch information
1 parent
40b9bff
commit 46f4b9d
Showing
3 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
if [[ $1 =~ refs/tags/([0-9]+\.[0-9]+).*$ ]]; | ||
then | ||
VERSION=${BASH_REMATCH[1]} | ||
echo "Building ${VERSION}" | ||
else | ||
VERSION=13.4 | ||
fi | ||
|
||
yum install -y dnf-plugins-core epel-release | ||
yum config-manager --set-enabled powertools | ||
yum install -y zlib-devel readline-devel uuid-devel libxml2-devel libxslt-devel | ||
curl -L -O https://ftp.postgresql.org/pub/source/v${VERSION}/postgresql-${VERSION}.tar.gz | ||
|
||
tar -xzf postgresql-${VERSION}.tar.gz | ||
cd postgresql-${VERSION} | ||
./configure --prefix=`pwd`/../src/postgresql --with-ossp-uuid --with-libxml --with-libxslt | ||
make -j 4 world-bin | ||
make install-world-bin | ||
cd .. | ||
|