repman
A Helm chart for Kubernetes
About this chart
Repman
Repman is Private PHP Package Repository Manager
Prerequisites
- Kubernetes 1.21 or later
Installing the Chart
The chart can be installed as follows:
$ helm repo add repman https://pixelfederation.github.io/repman
$ helm --namespace=repman install repman pixelfederation/repman
Exec to pod and run:
kubectl exec -ti POD_NAME bash -c api
bin/console d:m:m --no-interaction && bin/console messenger:setup-transports --no-interaction && bin/console repman:security:update-db && bin/console assets:install && php-fpm
Uninstalling the Chart
To uninstall/delete the repman deployment:
$ helm uninstall repman
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
See values.yaml for configuration notes. Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,
$ helm install repman \
pixelfederation/repman \
--set rbac.create=false
The above command disables automatic creation of RBAC rules.
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,
$ helm install repman pixelfederation/repman -f values.yaml
Store Sessions in a PostgreSQL:
CREATE TABLE sessions (
sess_id VARCHAR(128) NOT NULL PRIMARY KEY,
sess_data BYTEA NOT NULL,
sess_lifetime INTEGER NOT NULL,
sess_time INTEGER NOT NULL
);
CREATE INDEX sessions_sess_lifetime_idx ON sessions (sess_lifetime);
Deploy repman with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has repman on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartrepman is pinned at v1.0.14 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply