Skip to content

Support restarting docker container #584

@noradroid

Description

@noradroid

Preflight checklist

Ory Network Project

No response

Describe your problem

I use dockertest for running integration tests with the database. I'm currently using postgres with wallogs enabled (need to set postgres config as wal_level = logical etc.) as well as with postgres extensions installed. However, I am having trouble replicating this setup with dockertest as making changes to the config or adding new extension requires a db restart, which it seems like the postgres docker container does not support restarting the postgres service through commands and it only works if i restart the docker container itself. And I was not able to locate documentation for how to restart the docker container through dockertest.

Please help.

Describe your ideal solution

A method that allows me to restart the docker container programmatically.

Workarounds or alternatives

I've considered building a custom image which would possibly have all the configs updated and extensions installed before the container is even started up, but it seems that using a custom image would require me to host the image somewhere instead of being able to pull the image from the local dockerfile.

Version

v3

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions