This project is a ActiveMQ Artemis Self Provisioning Plugin to the Administrator perspective in OpenShift console. It requires OpenShift 4.10 to use.
In one terminal window, run:
yarn install
yarn run start
Note: yarn run start
starts the plugin in http mode.
if you want the plugin to run in https mode, run
yarn run start-tls
In another terminal window, run:
This will run the OpenShift console in a container connected to the cluster you've logged into. The plugin HTTP server runs on port 9001 with CORS enabled. Navigate to http://localhost:9000 to see the running plugin.
If you want the console to run in https
mode, run:
yarn run start-console-tls
This command will run the console in https
mode on port 9442.
The console url is https://localhost:9442
Note: Running console in https
mode requires the plugin running in https
mode too.
The console in https mode requires a private key and a server certificate that are generated
with openssl command. They are located under console-cert
directory. The domain.key is the
private key and domain.crt is the server certificate. Please read the console-cert/readme
for instructions on how they are generated.
To run the console in https mode, you need to mount the private key and server cert to the
docker container and pass the locations to the console using BRIDGE_TLS_CERT_FILE and
BRIDGE_TLS_KEY_FILE environment variables respectively. Please see the start-console-tls.sh
for details.
- Build the image:
docker build -t quay.io/artemiscloud/activemq-artemis-self-provisioning-plugin:latest .
- Run the image:
docker run -it --rm -d -p 9001:80 quay.io/artemiscloud/activemq-artemis-self-provisioning-plugin:latest
- Push the image to image registry:
docker push quay.io/artemiscloud/activemq-artemis-self-provisioning-plugin:latest
You can deploy the plugin to a cluster by running this following command:
./deploy-plugin.sh [-i <image> -n]
Without any arguments, the plugin will run in https mode on port 9443.
The optional -i <image>
(or --image <image>
) argument allows you to pass in the plugin image. If not specified the default
quay.io/artemiscloud/activemq-artemis-self-provisioning-plugin:latest
is deployed. for example:
./deploy-plugin.sh -i quay.io/hgao/activemq-artemis-self-provisioning-plugin:1.0.1
The optional -n
(or --nossl
) argument disables the https and makes the plugin run in http mode on port 9001.
For example:
./deploy-plugin.sh -n
The deploy-plugin.sh uses oc kustomize
(built-in kustomize) command to configure and deploy the plugin using
resources and patches defined under ./deploy directory.
To undeploy the plugin, run
./undeploy-plugin.sh