# Centos 6 (includes dependencies for building GPDB)
docker build -t local/gpdb-dev:centos6 centos6
# Centos 7 (includes dependencies for building GPDB)
docker build -t local/gpdb-dev:centos7 centos7
# Ubuntu (includes dependencies for building GPDB)
docker build -t --build-arg local/gpdb-dev:ubuntu16 ubuntu
docker build -t --build-arg BASE_IMAGE=ubuntu:18.04 local/gpdb-dev:ubuntu18 ubuntu
OR
docker pull pivotaldata/gpdb-dev:centos6
docker pull pivotaldata/gpdb-dev:centos7
docker pull pivotaldata/gpdb-dev:ubuntu16
docker pull pivotaldata/gpdb-dev:ubuntu18
Clone GPDB repo
git clone https://github.com/greenplum-db/gpdb.git
cd gpdb
Use docker image based on gpdb/src/tools/docker/centos7
docker run -w /home/build/gpdb -v ${PWD}:/home/build/gpdb:cached -it pivotaldata/gpdb-dev:centos7 /bin/bash
Inside docker (Total time to build and run ~ 15-20 min)
# ORCA is disabled here to keep the instructions simple
./configure --enable-debug --with-perl --with-python --with-libxml --disable-orca --prefix=/usr/local/gpdb
make -j4
# Install Greenplum binaries (to /usr/local/gpdb)
make install
# Create a single node demo cluster with three segments
source /usr/local/gpdb/greenplum_path.sh
make create-demo-cluster
source ./gpAux/gpdemo/gpdemo-env.sh
# Create and use a test database
createdb greenplum
psql -d greenplum
For more information follow the link