Skip to content

Commit

Permalink
Use the AiiDAlab full-stack image. (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
csadorf authored Sep 21, 2022
1 parent 0668ed8 commit fb00d91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
6 changes: 3 additions & 3 deletions copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,19 @@ secret_token:
image_name:
type: str
default: aiidalab/aiidalab-docker-stack
default: aiidalab/full-stack
help: |
The name of the image to use for the singleuser container.
image_tag:
type: str
default: 22.01.0
default: latest
help: |
The tag of the image to use for the singleuser container.
aiidalab_default_apps:
type: str
default: quantum-espresso
default:
help: |
The default apps to install.
Expand Down
18 changes: 2 additions & 16 deletions template/{{hostname}}/modules/aiidalab/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,13 @@ singleuser:
name: "{{ image_name }}"
tag: "{{ image_tag }}"
pullPolicy: Always
fsGid: 1000
cmd: /sbin/my_my_init
extraEnv:
NB_USER: "aiida"
NB_UID: "1000"
NB_GID: "1000"
AIIDALAB_FACTORY_RESET: "{{ aiidalab_factory_reset | default('')}}"
{%- if aiidalab_default_apps %}
AIIDALAB_DEFAULT_APPS: >-
{{ aiidalab_default_apps.split() | join('\n') | indent(6) }}
{%- endif %}
cmd: start-singleuser.sh
storage:
homeMountPath: "/home/aiida"
dynamic:
storageClass: managed-premium

Expand All @@ -37,7 +31,7 @@ singleuser:
cpu:
limit: 2.0
guarantee: .5
startTimeout: 600
startTimeout: 120

hub:
config:
Expand Down Expand Up @@ -77,14 +71,6 @@ hub:

extraConfig:
myConfig: |
c.KubeSpawner.http_timeout = 600
# phusion init system needs to run as root
c.KubeSpawner.uid = 0
# Setting the gid was needed to fix
# https://github.com/aiidalab/aiidalab-docker-stack/issues/20
c.KubeSpawner.gid = 1000
# insert template path for custom login template
c.JupyterHub.template_paths.insert(0, "/etc/jupyterhub/templates")
Expand Down

0 comments on commit fb00d91

Please sign in to comment.