Running post-deployment hooks

Hi :wave:

I’ve read your documentation and I have a question regarding post-deployment hooks. For example, let’s say that I want to deploy a WordPress container and pass information about installing some Plugins and/or Themes.

What would be the best way to do that? Like building my custom container image that will have a service for such things, or maybe there is some better way?

I also need to be able to change the state, so for example, at a certain point during the life of a deployment, I might want to update my “plugin/themes manifest” and make sure that change is applied to the deployment.

Hi Igor!

To install plugins, you can use the ‘WP_PLUGINLIST’ environment variable which can defined upon creation.

Another thing you can do is utilize the wp cli utility which is included in both the bastion container as the wp container itself.

Here is an example of how the wp users feature works, but running wp cli on the container itself

1 Like

Great, that is precisely what I needed!