Skip to content

Commit

Permalink
installation: document post-installation steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Rodriguez committed May 20, 2020
1 parent 9b99b25 commit f340b18
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
23 changes: 22 additions & 1 deletion helm/reana/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
Thanks for flying REANA 🚀

The REANA system has been installed:

There are a few steps left to finalise it's configuration

1. Get the REANA-Server pod name:

$ REANA_SERVER=$(kubectl get pod -l "app={{ .Release.Name }}-server" -o name -o jsonpath='{.items[0].metadata.name}')

2. Initialise the database:

$ kubectl exec $REANA_SERVER -- ./scripts/setup

2. Create your administrator user and store the token:

$ kubectl exec $REANA_SERVER -- flask reana-admin create-admin-user user@my.org
<reana-admin-access-token-value>
$ read -s REANA_ADMIN_ACCESS_TOKEN # paste the secret here
$ kubectl create secret generic {{ .Release.Name }}-admin-access-token \
--from-literal=ADMIN_ACCESS_TOKEN='$REANA_ADMIN_ACCESS_TOKEN'

Thanks for flying REANA 🚀
4 changes: 2 additions & 2 deletions helm/reana/templates/reana-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ spec:
name: http
{{- if .Values.debug.enabled }}
command: ["/bin/sh", "-c"]
args: ["set -e; ./scripts/setup; invenio run -h 0.0.0.0 -p 5000"]
args: ["invenio run -h 0.0.0.0 -p 5000"]
tty: true
stdin: true
{{- else }}
command: ["/bin/sh", "-c"]
args: ["./scripts/setup > /var/log/reana-server-init-output.log 2>&1 && uwsgi --ini /var/reana/uwsgi/uwsgi.ini"]
args: ["uwsgi --ini /var/reana/uwsgi/uwsgi.ini"]
{{- end }}
volumeMounts:
{{- if .Values.debug.enabled }}
Expand Down

0 comments on commit f340b18

Please sign in to comment.