Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker/build/xqueue/ansible_overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ XQUEUE_MYSQL_HOST: "edx.devstack.mysql57"
XQUEUE_SETTINGS: "devstack"
xqueue_gunicorn_port: 18040
xqueue_gunicorn_host: 0.0.0.0
xqueue_image_building: true
devstack: true
2 changes: 2 additions & 0 deletions playbooks/roles/xqueue/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,5 @@ xqueue_release_specific_debian_pkgs:
xqueue_use_python3: false
# flag to run xqueue on python3.11
xqueue_use_python311: true
# flag for docker builds
xqueue_image_building: false
18 changes: 18 additions & 0 deletions playbooks/roles/xqueue/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,24 @@
- install
- install:system-requirements

# following task is only needed for docker builds
- name: install pip for python3.11 for docker image
shell: |
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11
when: xqueue_use_python311 and xqueue_image_building
tags:
- install
- install:system-requirements

# following task is only needed for docker builds
- name: install virtualenv for docker image
shell: |
python3.11 -m pip install virtualenv
when: xqueue_use_python311 and xqueue_image_building
tags:
- install
- install:system-requirements

- name: install python3
apt:
name: "{{ item }}"
Expand Down