hifis-net / ansible-role-rsd

Ansible role to set up the Research Software Directory.
https://galaxy.ansible.com/hifis/rsd
Other
0 stars 2 forks source link

Support custom themes via mounts #99

Closed ruester closed 1 year ago

ruester commented 2 years ago

There is a new change in the RSD coming up: https://github.com/research-software-directory/RSD-as-a-service/pull/506

If this gets merged we will need an option so that some additional docker mounts are made (via docker-compose.yml), in case of the HIFIS RSD like so:

  frontend:
    ...
    volumes:
      - ./deployment/helmholtz/styles:/app/public/styles
      - ./deployment/helmholtz/data:/app/public/data
      - ./deployment/helmholtz/images:/app/public/images

I would think of having some role variable like rsd_custom_theme which is unset by default. But if it is set then it is used for additional mounts:

  frontend:
    ...
    volumes:
      - ./deployment/{{ rsd_custom_theme }}/styles:/app/public/styles
      - ./deployment/{{ rsd_custom_theme }}/data:/app/public/data
      - ./deployment/{{ rsd_custom_theme }}/images:/app/public/images

I am preparing the merge of this new feature here: https://github.com/hifis-net/RSD-as-a-service/pull/48

cmeessen commented 2 years ago

Obsolete with https://github.com/research-software-directory/RSD-as-a-service/commit/874bf6f5033ddcc8b88ed3fe5736f57132689643