Building from source using clean Ubuntu docker container

Поиск
Список
Период
Сортировка
От PG Doc comments form
Тема Building from source using clean Ubuntu docker container
Дата
Msg-id 171645905337.2021730.679031210652169512@wrigleys.postgresql.org
обсуждение исходный текст
Список pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/16/install-make.html
Description:

Hello there,

Below are complete steps for building Postgres from source in a clean docker
ubuntu container. 

Maybe this is useful for your docs? I noticed the 'Chapter 17. Installation
from Source Code' doesn't discuss many common dependency issues like ICU and
Zlib. 

If you would like a write up, I can contribute.

Thanks,
Sundip

STEPS:
docker pull ubuntu
docker run --rm -it --entrypoint bash ubuntu

apt update && apt upgrade
apt install build-essential
apt install sudo
apt install git
apt install pkg-config
apt install libicu-dev
apt install bison
apt install flex
apt install libreadline-dev
apt install zlib1g-dev

adduser postgres
usermod -aG sudo postgres
git clone https://git.postgresql.org/git/postgresql.git
./configure
make
sudo make install 
sudo mkdir -p /usr/local/pgsql/data
sudo chown postgres /usr/local/pgsql/data
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test

В списке pgsql-docs по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: column_name of ALTER MATERIALIZED VIEW should only refer to an existing column
Следующее
От: Erik Wienhold
Дата:
Сообщение: Re: column_name of ALTER MATERIALIZED VIEW should only refer to an existing column