Building from source using clean Ubuntu docker container - Mailing list pgsql-docs

From PG Doc comments form
Subject Building from source using clean Ubuntu docker container
Date
Msg-id 171645905337.2021730.679031210652169512@wrigleys.postgresql.org
Whole thread Raw
List 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 by date:

Previous
From: Michael Paquier
Date:
Subject: Re: column_name of ALTER MATERIALIZED VIEW should only refer to an existing column
Next
From: Erik Wienhold
Date:
Subject: Re: column_name of ALTER MATERIALIZED VIEW should only refer to an existing column