Skip to content

Commit f896eae

Browse files
Self-Hosted: add instructions on how to update all packages on Kubernetes
1 parent f8b6b0e commit f896eae

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/self-hosted/kubernetes-maintenance.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,17 @@ we will make sure to communicate this first.
5757

5858
We recommend backing up your database before each update. We cannot guarantee that downgrading to a previous release will always work
5959
due to database migrations. In case of upgrade failure, the most reliable way to rollback to the previous version is via backup.
60+
61+
## Private Packagist Self-Hosted CLI
62+
63+
### Updating all packages
64+
65+
Run the commands below to schedule update jobs on the worker for all packages on your installation. The flag `--overwrite-data` ensures
66+
that all existing version data is downloaded from the source again and version data is overwritten if it has changed. The
67+
flag `--only-non-updated` limits the set of packages to those which have only been initialized but never updated yet.
68+
69+
```
70+
export UI_POD=$(kubectl get pods --field-selector=status.phase=Running --no-headers -o custom-columns=":metadata.name"|grep ui-)
71+
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]"
72+
```
73+

0 commit comments

Comments
 (0)