How to build Postgresql Docker image based on Fedora (RHEL) system and do quick testing:
-
build requirements:
- dg tool installed
- git
- GNU make
- docker installed and server running
-
Clone git repository:
$ git clone https://github.com/devexp-db/cont-postgresql.git $ cd cont-postgresql $ git submodule update --init
-
Build the distgen for fedora-22-x86_64
$ make distro=fedora-22-x86_64 $ cd output $ sudo docker build -t postgresql-fedora-22 .
-
Run the image:
$ docker run -ti --rm postgresql-fedora-22 container-usage | less $ docker run -ti --rm \ -e POSTGRESQL_CONTAINER_OPTS="assert_external_data = false" \ postgresql-fedora-22