/satis-chart

set up a satis on Kubernetes with Helm to mirror or reference private composer repositories

Primary LanguageHTML

Satis Helm Chart

Introduction

This chart is used for setting up a Satis server on kubernetes

Satis is a static Composer repository generator, so this chart can be used, for example, to mirror packagist.org amongst or to reference private repositories

This chart is using composer/satis (which is based on php:7-alpine) And nginx:1.13.12-alpine to serve the static files

Setup

Basic auth

If you wish to protect your Satis repository with basic authentication, first create an auth file:

htpasswd -c auth satis

and add it to your namespace:

kubectl create secret generic satis-basic-auth --from-file=auth
  • Uncomment the annotations related to basic auth in the values.yaml file

Deploy with Helm

helm install do87/satis-chart

Configuration

Important values to configure / override

Parameter Description Default
nginx.resources nginx Container resources {}
nginx.config nginx Config file value refer to values file
satis.resources satis Container resources {}
satis.config satis Config file (satis.json) refer to values file
ingress.enabled is ingress enabled? false
ingress.hosts ingress hosts satis.domain.com
ingress.annotations annotations refer to values file
persistent.enabled is persistency enabled? false

Test deployment

After your server is up, you may test it with the following composer.json (assuming satis.config hasn't been changed)

{
  "name": "company/service-name",
  "license": "proprietary",
  "type": "project",
  "require": {
    "phpunit/phpunit": "*"
  },
  "repositories": [
    {
      "type": "composer",
      "url": "https://username:password@satis.domain.com"
    },
    {
      "packagist": false
    }
  ]
}