From 3d3e86d009a5fbf7c95cf0d59ccc6dad01359fce Mon Sep 17 00:00:00 2001 From: Omar Al-Ithawi Date: Sun, 30 Jul 2023 17:05:49 +0300 Subject: [PATCH] feat: install atlas in edx_django_service Download the openedx-atlas executable for all edx_django_service to be used in `make pull_translations` This installs `atlas` on all Ansible build targets such as Native Installation and Devstack. This contribution is part of the [FC-0012 project](https://openedx.atlassian.net/l/cp/XGS0iCcQ) which is sparked by the [Translation Infrastructure update OEP-58](https://open-edx-proposals.readthedocs.io/en/latest/architectural-decisions/oep-0058-arch-translations-management.html#specification). --- playbooks/roles/edx_django_service/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/playbooks/roles/edx_django_service/tasks/main.yml b/playbooks/roles/edx_django_service/tasks/main.yml index b71fe5f979e..0f181e139a6 100644 --- a/playbooks/roles/edx_django_service/tasks/main.yml +++ b/playbooks/roles/edx_django_service/tasks/main.yml @@ -212,6 +212,16 @@ - install - install:app-requirements +- name: install Open edX Atlas translation tool + get_url: + url: "https://github.com/openedx/openedx-atlas/releases/download/v0.1.1/atlas" + # Even though Atlas is a bash script, it is installed in the virtualenv to avoid adding another PATH entry. + dest: "{{ edx_django_service_venv_dir }}/bin/atlas" + become_user: "{{ edx_django_service_user }}" + tags: + - install + - install:app-requirements + - name: Check for existing make_migrate container command: "docker ps -aq --filter name='{{ edx_django_service_name }}.make_migrate'" register: edx_django_service_make_migrate_container