Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve container image #60

Merged
merged 11 commits into from
Jul 25, 2023
Merged

Improve container image #60

merged 11 commits into from
Jul 25, 2023

Commits on Jul 25, 2023

  1. Configuration menu
    Copy the full SHA
    7d1527d View commit details
    Browse the repository at this point in the history
  2. Change: Don't adjust postgres hba config in Dockerfile

    The postgres hba config file contains the access rules to the postgres
    cluster. It will be adjusted in the entry point script in future.
    bjoernricks committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    7a34f3f View commit details
    Browse the repository at this point in the history
  3. Put signal handler into bash function

    This allows for easier adjustments in future and for easier quoting.
    bjoernricks committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    793a9dd View commit details
    Browse the repository at this point in the history
  4. Adjust and improve variables in start-postgresql script for container

    Allow for more flexible configuration of the database parameters.
    bjoernricks committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    fb647be View commit details
    Browse the repository at this point in the history
  5. Change: Adjust postgres access during container startup

    Always allow access via the unix domain socket and allow to configure
    the authentication for the access via tcp via a
    POSTGRES_HOST_AUTH_METHOD environment variable. By default users must be
    authenticated via password when using tcp and the passwords are created
    using the md5 authentication method.
    bjoernricks committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    52b6baf View commit details
    Browse the repository at this point in the history
  6. Don't listen on tcp for the initial database setup

    We need to initialize the db without influence from the outside.
    Therefore don't allow access to the database via TCP connections for the
    moment.
    bjoernricks committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    94fc1c4 View commit details
    Browse the repository at this point in the history
  7. Change: Allow access to the postgres db via TCP connections

    Listen on all IP addresses of the container when starting the final db
    cluster. This will allow to access the database via TCP connections from
    the host for example when exposing the port 5432.
    bjoernricks committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    094e321 View commit details
    Browse the repository at this point in the history
  8. Change: Only create postgres db user when it doesn't exist in container

    Avoid errors in the log when trying the create the db user twice.
    bjoernricks committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    1c87bbb View commit details
    Browse the repository at this point in the history
  9. Change: Allow to set db user password for container

    For TCP access from the outside allow to set a password for the created
    database user.
    bjoernricks committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    a543624 View commit details
    Browse the repository at this point in the history
  10. Change: Only create new postgres db if doesn't exist yet in container

    Avoid errors when starting a container with an existing database.
    bjoernricks committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    8fae353 View commit details
    Browse the repository at this point in the history
  11. Change: Create role and extensions only if they don't exist in container

    Avoid errors when starting an already existing and set up database.
    bjoernricks committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    82a1c49 View commit details
    Browse the repository at this point in the history