Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Latest commit

 

History

History
84 lines (62 loc) · 1.92 KB

File metadata and controls

84 lines (62 loc) · 1.92 KB
title description lead date lastmod draft images menu weight toc
Building
Building arkmq-org.io
Building arkmq-org.io
2020-10-06 08:49:31 +0000
2020-10-06 08:49:31 +0000
false
docs
parent
help
630
true

Building the operator

Prerequisites

Go

Download the Go version v1.21.11 from the download page and install it following the installation instructions.

Operator SDK

Install Operator SDK version v1.28.0 following the installation instructions from a GitHub release.

Docker

Install Docker following the installation instructions.

Get the code

git clone https://github.com/arkmq-org/activemq-artemis-operator
cd activemq-artemis-operator
git checkout main

Building the code locally

make

or

make build

Building the operator image

There are 2 variables you may need to override in order to push the images to your preferred registry.

OPERATOR_IMAGE_REPO (your preferred image registry name, for example quay.io/hgao/operator

and

OPERATOR_VERSION (the image's tag, for example v1.1)

Now build the image passing the variables

make OPERATOR_IMAGE_REPO=<your repo> OPERATOR_VERSION=<tag> docker-build

If finished sucessfully it will print the image url in the end. The image url is like

${OPERATOR_IMAGE_REPO}:${TAG}

Push the image to registry

docker push ${OPERATOR_IMAGE_REPO}:${TAG}

or use the make target docker-push

make OPERATOR_IMAGE_REPO=<your repo> OPERATOR_VERSION=<tag> docker-push

Now follow the quickstart to deploy the operator.