-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from svobtom/demo-for-egi
Terms and policy adapted
- Loading branch information
Showing
32 changed files
with
1,074 additions
and
630 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v2 | ||
name: scipion-portal | ||
version: 0.0.0 | ||
appVersion: "0.0.0" | ||
description: A Helm chart to deploy Scipion portal for managing the Scipion instances | ||
icon: file://logo.png | ||
keywords: | ||
- scipion-portal | ||
- scipion | ||
- onedata | ||
type: application |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
labels: | ||
io.rancher.certified: CERIT-SC | ||
|
||
rancher_min_version: 2.3.0 | ||
|
||
categories: | ||
- Scipion | ||
|
||
questions: | ||
- variable: instance.mincpu | ||
default: 2 | ||
description: "Minimum guaranteed CPUs" | ||
type: string | ||
label: Min CPU | ||
group: "Resources" | ||
- variable: instance.maxcpu | ||
default: 4 | ||
description: "Maximum allowed CPUs" | ||
type: string | ||
label: Max CPU | ||
group: "Resources" | ||
- variable: instance.minram | ||
default: "1024Mi" | ||
description: "Minimum guaranteed RAM" | ||
type: string | ||
label: Min RAM | ||
group: "Resources" | ||
- variable: instance.maxram | ||
default: "1024Mi" | ||
description: "Maximum allowed RAM" | ||
type: string | ||
label: Max RAM | ||
group: "Resources" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: scipion-portal-svc-db | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- name: scipion-portal-port-db | ||
port: 3306 | ||
targetPort: 3306 | ||
selector: | ||
app: scipion-portal-db |
7 changes: 3 additions & 4 deletions
7
kubernetes/cluster-ip-http.yaml → helm-chart/templates/cluster-ip-scipo.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: scipion-portal-svc | ||
name: scipion-portal-svc-scipo | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- name: scipion-portal-port | ||
- name: scipion-portal-port-scipo | ||
port: 80 | ||
targetPort: 8080 | ||
selector: | ||
app: scipion-portal | ||
|
||
app: scipion-portal-scipo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: scipion-portal-scipo | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: scipion-portal-scipo | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: scipion-portal-scipo | ||
spec: | ||
|
||
initContainers: | ||
|
||
- name: init-db-wait | ||
image: busybox | ||
imagePullPolicy: Always | ||
securityContext: | ||
privileged: false | ||
runAsUser: 1000 | ||
runAsGroup: 1000 | ||
command: ['sh', '-c', 'echo -e "Checking for the availability of MySQL Server deployment"; while ! nc -z scipion-portal-svc-db 3306; do sleep 1; printf "-"; done; echo -e " >> MySQL DB Server has started";'] | ||
|
||
- name: init-db-init | ||
image: mysql | ||
imagePullPolicy: Always | ||
securityContext: | ||
privileged: false | ||
runAsUser: 1000 | ||
runAsGroup: 1000 | ||
command: ['sh', '-c', 'mysql --host="scipion-portal-svc-db" --user root --password="$MYSQL_ROOT_PASSWORD" --execute="CREATE DATABASE IF NOT EXISTS scipo; GRANT ALL ON scipo.* TO dbuser@;"'] | ||
env: | ||
- name: MYSQL_ROOT_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: scipion-portal-secret | ||
key: mysql_root_password | ||
|
||
containers: | ||
|
||
- name: scipo | ||
image: hub.cerit.io/scipion-portal/portal:dev | ||
imagePullPolicy: Always | ||
securityContext: | ||
privileged: false | ||
runAsUser: 1000 | ||
runAsGroup: 1000 | ||
ports: | ||
- containerPort: 8080 | ||
resources: | ||
limits: | ||
cpu: {{ .Values.instance.maxcpu }} | ||
memory: {{ .Values.instance.maxram }} | ||
requests: | ||
cpu: {{ .Values.instance.mincpu }} | ||
memory: {{ .Values.instance.minram }} | ||
|
||
env: | ||
- name: SECRET_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: scipion-portal-secret | ||
key: secret_key | ||
|
||
- name: OIDC_RP_CLIENT_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: scipion-portal-secret | ||
key: oidc_rp_client_id | ||
|
||
- name: OIDC_RP_CLIENT_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: scipion-portal-secret | ||
key: oidc_rp_client_secret | ||
|
||
- name: MYSQL_USER | ||
valueFrom: | ||
secretKeyRef: | ||
name: scipion-portal-secret | ||
key: mysql_user | ||
|
||
- name: MYSQL_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: scipion-portal-secret | ||
key: mysql_password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: pvc-scipion-portal-db | ||
annotations: | ||
"helm.sh/resource-policy": keep | ||
spec: | ||
accessModes: | ||
- ReadWriteMany | ||
resources: | ||
requests: | ||
storage: 10Gi | ||
storageClassName: nfs-csi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: scipion-portal-secret | ||
type: Opaque | ||
data: | ||
# the secrets must be in base64 form without '\n' char | ||
secret_key: null | ||
oidc_rp_client_id: null | ||
oidc_rp_client_secret: null | ||
mysql_user: null | ||
mysql_password: null | ||
mysql_root_password: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
instance: | ||
mincpu: 2 | ||
maxcpu: 4 | ||
minram: 1024Mi | ||
maxram: 1024Mi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
#!/bin/bash | ||
set -xe | ||
|
||
cd /srv/scipo | ||
python3 manage.py collectstatic | ||
|
||
# init required data in the database | ||
python3 manage.py migrate sessions | ||
python3 manage.py migrate auth | ||
|
||
#python3 manage.py runserver_plus --cert-file /mnt/cert/fullchain.pem --key-file /mnt/cert/privkey.pem 0.0.0.0:443 | ||
python3 manage.py runserver 0.0.0.0:80 | ||
python3 manage.py runserver 0.0.0.0:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
.custom-user-img-gray { | ||
font-size: 2.1rem; | ||
color: #c2c7d0 | ||
} | ||
|
||
.custom-user-img-green { | ||
font-size: 2.1rem; | ||
color: #72B958 | ||
} | ||
|
||
.info-section-box { | ||
display: flex; | ||
} | ||
|
||
.info-section-i { | ||
font-size: 1.2rem; | ||
margin-right: 1rem; | ||
color: #343a40; | ||
} | ||
|
||
.user-panel .info { | ||
color: #c2c7d0; | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.