Installation
The application is provided as docker images that can easily be hosted either with docker-compose on a workload VM or via Helm Chart on a Kubernetes cluster. The images (web + nginx) are published to DockerHub and bin.swisscom.com.
Below we explain two differnet ways on how to install the ESC Scheduler.
Workload VM + Docker-Compose
Prerequisites
- An unmanaged RHEL 8 U1 machine in ESC (or similar)
- Docker and Docker-Compose installed on the VM
- Connectivity from the VM to ESC (vRA)
- Optional: Connectivity from the VM to an AD / LDAP server
Download & Install
On your server, create a folder (e.g. called vm-scheduler)
Download this docker-compose.yml file into that folder (right-click -> "Save as")
Create a file named
.envwithin that folder with the following content:MYSQL_ROOT_PASSWORD=setAsecurePassword MYSQL_DATA_VOLUME_PATH=/tmp/vm_scheduler/mysqld SECRET_KEY=setArandomKey INITIAL_ADMIN_PASSWORD=admin INITIAL_USER_PASSWORD=password ALLOWED_HOSTS=localhost,yourdomain.com,0.0.0.0 # OPTIONAL - for LDAP integration LDAP_SERVER_URI= LDAP_BASE_DN= LDAP_GROUP_DN= LDAP_SUPERUSER_GROUP_DN= LDAP_BIND_DN= LDAP_BIND_PASSWORD= LDAP_START_TLS= LDAP_IGNORE_CERT= LDAP_CERTIFICATE_PATH= LDAP_WITH_LOCAL_AUTH=Change the values to your liking, see the configuration page for detailed information on each option.
Download & run the containers with the following command:
docker-compose pull && docker-compose up -dVisit the application at e.g.
localhost:80(-> make sure the host is set inDJANGO_ALLOWED_HOSTS).
Kubernetes Cluster + HELM Chart
Prerequisites
- A PKS Kubernetes Cluster on the ESC
- A machine that has access to the Kubernetes Cluster via
kubectl - kubectl and Helm installed on that machine
kubectl/kubeconfigconfigured to use your Kubernetes cluster- Connectivity from the Kubernetes Cluster to ESC (vRA)
- Optional: Connectivity from the Kubernetes Cluster to an AD / LDAP server
Download & Install
Download the Helm Chart from the Github Repository.
Change the
values.yamlto your liking, see the configuration page for detailed information on each option.Run
helm install -f values.yaml vmscheduler .
