Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
feat: install atlas in mfe role
Browse files Browse the repository at this point in the history
Download the openedx-atlas executable for all Micro-frontends 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).
  • Loading branch information
OmarIthawi committed Aug 3, 2023
1 parent 70c147f commit 2161868
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions playbooks/roles/mfe/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ MFE_NODE_MODULES_DIR: '{{ MFE_CODE_DIR }}/node_modules'
MFE_NODE_BIN: '{{ MFE_NODE_MODULES_DIR }}/.bin'
MFE_NODE_VERSION: '16.13.2'
MFE_NPM_VERSION: '8.1.2'
MFE_ATLAS_VERSION: 'v0.1.1'

MFE_DEBIAN_PKGS_DEFAULT:
- gettext
Expand Down
10 changes: 10 additions & 0 deletions playbooks/roles/mfe/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@
- install
- install:system-requirements

- name: install Open edX Atlas translation tool
get_url:
url: "https://github.com/openedx/openedx-atlas/releases/{{ MFE_ATLAS_VERSION }}/atlas"
# Even though Atlas is a bash script, it is installed in the nodeenv bin to avoid adding another PATH entry.
dest: "{{ MFE_NODEENV_BIN }}/atlas"
become_user: "{{ edx_django_service_user }}"
tags:
- install
- install:app-requirements

- name: upgrade npm
command: "npm install -g npm@{{ MFE_NPM_VERSION }}"
become_user: "{{ MFE_USER }}"
Expand Down

0 comments on commit 2161868

Please sign in to comment.