Deploy Software Factory
Prerequisites
- K3D version v5.6.0 for development and testing environments.
- Any CNCF Certified Kubernetes Cluster for production environments.
- UDS CLI version 0.10.4 or later.
Apple Silicon Mac Users
When deploying on an Apple Silicon Mac, you have the option to utilize Colima, an open-source alternative to Docker Desktop, for deploying this bundle. You can install Colima via Homebrew by executing the command brew install colima
.
To set up an appropriately configured Colima virtual machine, run the following command:
Certain configurations must be set on the host to ensure a smooth deployment of SonarQube and UDS Core. Note: From our testing these steps are not required with Docker Desktop.
SSH To the colima VM:
Then run the following commands:
Linux Users
Depending on your Linux distribution and its configuration, you may need to execute the following steps to ensure the proper deployment of Software Factory and/or UDS Core:
Quickstart
**Step 1: Install UDS CLI
Step 2: Deploy
To experiment with the UDS Software Factory, you can use the k3d-swf-demo
bundle to create a local K3d cluster featuring complete installations of UDS Core and Software Factory.
To deploy this bundle, run the following command:
Optional:
Use the following command to visualize resources in the cluster via K9s:
Step 3: Clean Up
Upon completion of the Software Factory demo bundle, execute the following command to tear down the K3d cluster:
Alternatively, you have the option to deploy the swf-dev
bundle, designed to be deployed atop k3d-core-slim-dev
. This bundle encompasses the entire Software Factory, while leveraging only a portion of the underlying UDS Core baseline. This design allows the bundle to run on a broader range of hardware, specifically tailored for local development environments.
If using the swf-dev
bundle, users have two options for deployment:
- Build and deploy directly from the source.
- Deploy the pre-built artifacts hosted in the GHCR OCI registry.
OCI
Run the below command to deploy the k3d-core-slim-dev
bundle:
Then run the following command to deploy the swf-dev
bundle on top of the development cluster:
You can then configure keycloak. Use zarf connect to establish a connection to the keycloak admin endpoint:
Refer to the UDS Core documentation for more details on how to configure keycloak users and groups.
Source
Step 1: Clone the Software Factory Repository
To build and deploy from the source you can utilize the UDS tasks by running:
If you need to create a test user in keyloak you can then run: