A reference implementation for extending Threeport.
This project demonstrates how to use the Threeport SDK to build modules for Threeport. See the Threeport Docs for a tutorial that provides step-by-step instructions on how to build this module.
If you already have the Threeport CLI installed, you can install the plugin for this WordPress module as follows.
-
Clone this repo.
-
Build the plugin binary. Requires mage.
mage build:plugin
-
Install the plugin binary.
cp bin/wordpress ~/.threeport/plugins/ -
View the usage info for the plugin.
tptctl wordpress -h
If you have a local Threeport control plane running, you can install an instance of Wordpress as follows.
-
Create a local container registry.
mage dev:localRegistryUp
-
Build and push the WordPress modules control plane components to the local registry.
mage build:allImagesDev
-
Install this module's control plane components.
tptctl wordpress install -r localhost:5001
-
Install an instance of the WordPress app.
tptctl wordpress create wordpress -c samples/wordpress.yaml
Clean up with the following steps.
-
Remove the WordPress app.
tptctl wordpress delete wordpress -c samples/wordpress.yaml
-
Remove the local container registry.
mage dev:localRegistryDown