team19hackathon2021 / issues-chris

0 stars 0 forks source link

define the Ansible tasks to setup all the main ChRIS plugins #47

Closed computate closed 3 years ago

computate commented 3 years ago

Mission define the Ansible tasks to setup all the main ChRIS plugins

Mission

Your mission, should you choose to accept it, is define the Ansible tasks to setup all the main ChRIS plugins.

The day of the operation is October 26th, 2021

You will have 4 hours to complete your mission.

ChRIS is a pervasively open source platform that utilizes cloud technologies to democratize medical analytics application development. It enables healthcare organizations to keep owning their data while benefiting from public cloud processing capabilities. ChRIS is developed as part of a collaborative effort between Boston Children’s Hospital, Red Hat, Boston University, and the Mass Open Cloud (MOC). ChRIS allows researchers the ability to simply deploy their applications in a cloud infrastructure with access to more data, more compute, and more collaboration to drive medical innovation. ChRIS uses leading open source technologies to standardize cloud-based healthcare application development, taking care of the infrastructure so medical researchers can focus on their data.

You will be joining a team of the boldest

of all Red Hatters for this mission, who will be at your service developing the code and automating the deployment to OpenShift.

How to get started:

Follow the instructions here to setup the project: https://github.com/team19hackathon2021/ChRIS_ultron_backEnd/tree/master/ansible

The details of your mission:

create the code

Create a new file: /usr/local/src/ChRIS_ultron_backEnd/ansible/roles/chris_plugins/tasks/main.yml

---
- name: "Add the superuser to the ChRIS store container"
  shell: /usr/bin/podman exec {{ STORE_NAME }} python manage.py createsuperuser --noinput --username '{{ APP_SUPER_USER_NAME }}' --email '{{ APP_SUPER_USER_EMAIL }}'
  become: true
  ignore_errors: true
- name: "Set the superuser password to the ChRIS store container"
  shell: /usr/bin/podman exec {{ STORE_NAME }} python manage.py shell -c "from django.contrib.auth.models import User; user=User.objects.get(username='{{ APP_SUPER_USER_NAME }}'); user.set_password('{{ APP_SUPER_USER_PASSWORD }}'); user.save(); "
  become: true
- name: "Install ChRIS plugins"
  include_role:
    name: chris_plugin
  loop: "{{ APP_PLUGINS }}"
  loop_control:
    loop_var: APP_PLUGIN

This message will not self-destruct.

This message will not self destruct, because this project is open source.

pcunning-rh commented 3 years ago

Closed with https://github.com/team19hackathon2021/ChRIS_ultron_backEnd/pull/5