team19hackathon2021 / issues-chris

0 stars 0 forks source link

define the Ansible tasks to install the store application as a container in podman #63

Closed computate closed 3 years ago

computate commented 3 years ago

Mission define the Ansible tasks to install the store application as a container in podman

Mission

Your mission, should you choose to accept it, is define the Ansible tasks to install the store application as a container in podman.

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:

Automate the deployment of ChRIS store as a Podman container running as a Systemd service.

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

---
# Automate the deployment of ChRIS store as a Podman container running as a Systemd service. 
- name: Create the {{ STORE_NAME }} systemd service {{ STORE_SYSTEMD }}. 
  template:
    src: chris_store.service
    dest: "{{ STORE_SYSTEMD }}"
  become: true
  when: ansible_pkg_mgr != 'homebrew'
- name: Reload the services. 
  systemd:
    daemon_reload: true
  become: true
  when: ansible_pkg_mgr != 'homebrew'
- name: Start and enable the {{ STORE_SERVICE }} service. 
  service:
    name: "{{ STORE_SERVICE }}"
    enabled: true
    state: restarted
  become: true
  when: ansible_pkg_mgr != 'homebrew'

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/29