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

Commit

Permalink
feat: Add Atlas pull_translations after Makefile fixes [working]
Browse files Browse the repository at this point in the history
This reverts commit 70eb142
and makes the following changes:

- No need to install atlas directly -- the openedx-atlas package
  actually has what we need already.
- After openedx/edx-platform#34306 we
  shouldn't encounter npm issues, so move task above NPM installs.
  • Loading branch information
timmc-edx committed Mar 1, 2024
1 parent e547be4 commit c1b07af
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions playbooks/roles/edxapp/tasks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
- name: checkout edx-platform repo into {{ edxapp_code_dir }}
git:
dest: "{{ edxapp_code_dir }}"
repo: "{{ edx_platform_repo }}"
version: "{{ EDX_PLATFORM_VERSION }}"
repo: "https://github.com/Zeit-Labs/edx-platform"
version: "compile_js_no_paver"
accept_hostkey: yes
key_file: "{% if EDXAPP_USE_GIT_IDENTITY %}{{ edxapp_git_identity }}{% endif %}"
become_user: "{{ edxapp_user }}"
Expand Down Expand Up @@ -216,6 +216,22 @@
- install
- install:app-requirements

- name: "Pull translations using Atlas after Python dependencies installed"
shell: |
set -eu -o pipefail
source {{ edxapp_venv_dir }}/bin/activate
# Use production Django settings because otherwise debug_toolbar will be referenced and cause
# an error (we don't have developer Python deps installed.) Use minimal configs because the
# real configs aren't installed until later in the playbook.
DJANGO_SETTINGS_MODULE=lms.envs.production LMS_CFG=lms/envs/minimal.yml STUDIO_CFG=lms/envs/minimal.yml \
OPENEDX_ATLAS_PULL=true make pull_translations
args:
executable: /usr/bin/bash
chdir: "{{ edxapp_code_dir }}"
become_user: "{{ edxapp_user }}"
tags:
- install

# If using CAS and you have a function for mapping attributes, install
# the module here. The next few tasks set up the python code sandbox
- name: install CAS attribute module
Expand Down

0 comments on commit c1b07af

Please sign in to comment.