Skip to content

Extending configuration generation #324

Closed
@arteme

Description

@arteme

It would be nice to be able to extend the configuration file generation when extending from this docker image. It would be nice to be able to add custom logic at the end of the configuration file generation.

Something along the line of (shamelessly stolen from postgresql docker container) this in docker-entrypoint.sh:

if [ "$1" = 'rabbitmq-server' ] && [ "$shouldWriteConfig" ]; then
                    # ....current logic....

                    echo
                    for f in /docker-entrypoint-initdb.d/*; do
                        case "$f" in
                                *.sh)
                                          echo "$0: sourcing $f"
                                          . "$f"
                                          ;;
                                *)        echo "$0: ignoring $f" ;;
                        esac
                        echo
                    done
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    RequestRequest for image modification or feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions