Bigbang Nexus Repository Manager deployed via flux by zarf
- Minimum compute requirements for single node deployment are at LEAST 64 GB RAM and 32 virtual CPU threads (aws
m6i.8xlarge
instance type should do) - k3d installed on machine
- Create
nexus
namespace - Label
nexus
namespace withistio-injection: enabled
- A Postgres database is running on port
5432
and accessible to the cluster - This database can be logged into via the username configured with
ZARF_VAR_NEXUS_DB_USERNAME
. The default isnexus
. - This database instance has a psql database created matching the configuration of
ZARF_VAR_NEXUS_DB_NAME
. The default isnexusdb
. - The database user has read/write access to the above mentioned database
- Create
nexus-postgres
service innexus
namespace that points to the psql database - Create
nexus-postgres
secret innexus
namespace with the keypassword
that contains the password to the user of the psql database
- You must provide a valid Nexus license to use the external DB configuration. If a license is not provided Nexus will default to the OSS version and will use an internal H2 DB.
- Provide your license via the Zarf deploy time variable
nexus_license_key
. - You can update the zarf-config.yaml in this project. The Makefile will copy that to the build directory to use at deploy time.
- In production, set the
nexus_license_key
in a way that is appropriate for your deployment.
# Download Zarf
make build/zarf
# Login to the registry
set +o history
# registry1.dso.mil (To access registry1 images needed during build time)
export REGISTRY1_USERNAME="YOUR-USERNAME-HERE"
export REGISTRY1_TOKEN="YOUR-TOKEN-HERE"
echo $REGISTRY1_TOKEN | build/zarf tools registry login registry1.dso.mil --username $REGISTRY1_USERNAME --password-stdin
set -o history
# This will run make build/all, make cluster/reset, and make deploy/all. Follow the breadcrumbs in the Makefile to see what and how its doing it.
make all
Below is an example of how to use this projects zarf package in your UDS Bundle
kind: UDSBundle
metadata:
name: example-bundle
description: An Example UDS Bundle
version: 0.0.1
architecture: amd64
zarf-packages:
# Nexus
- name: nexus
repository: ghcr.io/defenseunicorns/uds-capability/nexus
ref: x.x.x