GeographicaGS / Docker-PostGIS

This repository contains Docker image builds for PostgreSQL / PostGIS
MIT License
62 stars 16 forks source link

General enhancements for ease of use #53

Open ManuelLR opened 5 years ago

ManuelLR commented 5 years ago
ajaest commented 5 years ago

Default log only by stdout (I don't know what the current behaviour is)

Take into account that postgres has a log configuration which logs all SQL queries (log_statement = 'all'), which I think is enabled by default.

This setting should be disabled by default, specially in production environments. It may be useful tough to in development environments.

vehrka commented 5 years ago

Add unaccent library from the contrib directory in order to be able to load as extension

rbsolis commented 5 years ago

tablefunc in order to pivot tables quickly.

cayetanobv commented 5 years ago

Default log only by stdout (I don't know what the current behaviour is)

Take into account that postgres has a log configuration which logs all SQL queries (log_statement = 'all'), which I think is enabled by default.

This setting should be disabled by default, specially in production environments. It may be useful tough to in development environments.

Maybe we could change log_statement default value to ddl in our Docker image.

cayetanobv commented 5 years ago

Regarding to compile contrib extensions in default image I have some doubts. An alternative could be to document in main README how to add a contrib extension to your project Dockerfile extending from base image. What do you think about it?

vehrka commented 5 years ago

It would be nice also to have a vi installed

cayetanobv commented 5 years ago

It would be nice also to have a vim installed and delightful to have a minimal .vimrc (https://gist.github.com/vehrka/71b289bfe79854da0d92e8480bd42f15)

I think is better if the people install Vim (or his choice text editor) in a custom or project derived image so we can maintain base image (this image) thinner.

vehrka commented 5 years ago

It would be nice also to have a vim installed and delightful to have a minimal .vimrc (https://gist.github.com/vehrka/71b289bfe79854da0d92e8480bd42f15)

I think is better if the people install Vim (or his choice text editor) in a custom or project derived image so we can maintain base image (this image) thinner.

(edited my original coment)

Except when you deploy behind a firewalled environment and you cannot install anything.

In the image there is NO editor at all, nothing not even nano ...

ajaest commented 5 years ago

I agree with @cayetanobv, I think that it is not typical for docker images to have more than needed to run the target application/service in a context-less environment. This kind of software must be included in derived images.