Skip to content

scc-digitalhub/digitalhub

Repository files navigation

Digitalhub

This repository provides deployment guidelines and some example use cases for the Digitalhub platform.

The deployment and usage instructions for each use case can be found in the docs folder.

The platform deployment is managed via Docker Compose. Each documented use case requires a subset of components and has a corresponding YAML file in the docker-compose folder. The same folder also contains Docker Compose files for single components.

Installation on minikube

Prerequisites

Installation

  1. Start minikube (change 192.168.49.0 if your network setup is different):
    minikube start --insecure-registry "192.168.49.0/24" --memory 8192 --cpus 4
  1. Get minikube external IP:
    minikube ip
  1. Change the IP in 'global.registry.url' and 'global.externalHostAddress' properties in values file (helm/digitalhub/values.yaml) with the one obtained in the previous step.
  2. Add Digitalhub repository:
helm repo add digitalhub https://scc-digitalhub.github.io/digitalhub/
  1. Install DigitalHub with Helm:
    helm upgrade digitalhub digitalhub/digitalhub -n digitalhub --install --create-namespace --timeout 15m0s
  1. Wait until all pods are in Running state
    kubectl --namespace digitalhub get pods
  1. Retrieve database and S3 secrets
    kubectl --namespace digitalhub get secret minio -o yaml
    kubectl --namespace digitalhub get secret digitalhub-owner-user.database-postgres-cluster.credentials.postgresql.acid.zalan.do -o yaml
  1. Decode secret values
    echo -n "<BASE64_VALUES_FROM_SECRET>" | base64 -d 
  1. Create secret with previously decoded values
    kubectl -n digitalhub create secret generic digitalhub-common-creds --from-literal=POSTGRES_USER=<DECODED_VALUE> --from-literal=POSTGRES_PASSWORD=<DECODED_VALUE> --from-literal=AWS_ACCESS_KEY_ID=<DECODED_VALUE> --from-literal=AWS_SECRET_ACCESS_KEY=<DECODED_VALUE>