Maintenance
Private Packagist Self-Hosted (Kubernetes)
Documentation
- Quick Start Guide
- Environment-specific setup
- Composer Project Setup
- Composer Authentication
- Synchronizations
- Security Monitoring
- Update Review
- Conductor
- Suborganization Setup
- Vendors: Customer Setup
- API Documentation
- Cloud Changelog
Private Packagist Self-Hosted
- Self-Hosted Installation
- Maintenance
- Troubleshooting Guide
- Integration Setup
- Replicated Native (deprecated)
- Self-Hosted Changelog
kURL installations
Updates
This section describes how to update a Private Packagist Self-Hosted in a Kubernetes cluster installed with kURL. This section is not relevant if you installed the application with Helm.
By default Replicated checks for updates every 4 hours and you can install updates from the dashboard in the Replicated Management Console on port 8800 once they are available. You can configure this behavior under “Configure automatic updates” on the dashboard.
The Private Packagist Self-Hosted Changelog details all new features, behavior changes and major bugfixes each release introduces.
You can safely bump multiple versions at once, it's not required to install individual versions consecutively. If we ever release a version that needs to be installed specifically, we will make sure to communicate this first.
We recommend backing up your database before each update. We cannot guarantee that downgrading to a previous release will always work due to database migrations. In case of upgrade failure, the most reliable way to rollback to the previous version is via a snapshot.
New versions that ask you to upgrade KOTS (Kubernetes Off-The-Shelf), the Replicated tool used to distribute Private Packagist, require that you download and rerun the install script via the command below.
Update KOTS for Private Packagist Self-Hosted Kubernetes in a Kubernetes cluster installed with kURL
Please note that running the command will take a while as it will also update Kubernetes and other dependencies of Private Packagist Self-Hosted. Private Packagist and the Replicated Management Console will become temporarily unavailable.
curl -sSL https://k8s.kurl.sh/privatepackagistkots | bash -s
Update or replace the SSL certificate
To update or replace the certificate, you must first restore the ability to upload new TLS certificates and then reupload the certificate through the user interface. Please refer to the Replicated documentation for detailed instructions.
Helm installations
Updates
If you installed Private Packagist Self-Hosted with Helm into your existing cluster, you can update the application with the command
below. Make sure to compare your existing values.yaml
file to the current one first.
helm upgrade -f values.yaml private-packagist oci://registry.replicated.com/privatepackagistkots/private-packagist --version VERSION
You can find the latest version in the changelog. You can safely bump multiple versions at once, it's not required to install individual versions consecutively. If we ever release a version that needs to be installed specifically, we will make sure to communicate this first.
We recommend backing up your database before each update. We cannot guarantee that downgrading to a previous release will always work due to database migrations. In case of upgrade failure, the most reliable way to rollback to the previous version is via backup.
Private Packagist Self-Hosted CLI
Updating all packages
Run the commands below to schedule update jobs on the worker for all packages on your installation. The flag --overwrite-data
ensures
that all existing version data is downloaded from the source again and version data is overwritten if it has changed. The
flag --only-non-updated
limits the set of packages to those which have only been initialized but never updated yet.
export UI_POD=$(kubectl get pods --field-selector=status.phase=Running --no-headers -o custom-columns=":metadata.name"|grep ui-)
kubectl exec $UI_POD -c ui -- /bin/sh -c "/srv/manager/bin/console packagist:package:update-all --env=prod --no-debug [--overwrite-data] [--only-non-updated]"
Start Free Trial
Login to create an organization and start your free trial!