Test deployments in local
In some cases, you may wish to test out deployment using MyST from a local development environment. This is useful for ensuring automated deployment will work with MyST prior to committing the change to a version control system.
To perform local deployment, you will need to:
Install the MyST CLI
Create a
myst-deploy.sh
wrapper scriptDefine your local environment properties at
/opt/myst/lib/default.properties
Define a
deploy.properties
under a given source directory to indicate the deployment metadataEnsure your artifact is built.
After this, you can deploy from any directory with the deploy.properties
by simply running myst-deploy.sh
Install the MyST CLI
Install the MyST CLI to /opt/myst
using instructions available here.
Create the wrapper script
Create a myst-deploy.sh
script and make it available on the PATH
Define your local environment properties
This can be achieved by creating a file at /opt/myst/lib/default.properties
with all of the required local environment properties. Below is an example:
The passwords above will be encrypted on the first run. If you require any deploy-time customisation values (i.e. stream model properties), these can be added into the default.properties
file as well.
Create the deploy metadata for your source code
Create a deploy.properties
in the same directory as the pom.xml
Below is an example for an ADF application:
Run local deployment
Ensure the application is built and exists at the location indicated by the core.deployment[x].artifact.location
property.
Run myst-deploy
to deploy the built-artifact to your local environment.
Last updated