mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 02:30:01 -03:30
Build sdist inside of a container
A lot of people have experienced issues with the system-level dependencies that are required in order to build the source distribution that is handed off to the image builds. This makes it unnecessary to install any additional software on the host machine aside from Ansible and Docker.
This commit is contained in:
@@ -47,12 +47,22 @@
|
||||
when: not sdist.stat.exists
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Build sdist builder image
|
||||
docker_image:
|
||||
path: "image_build/files"
|
||||
dockerfile: Dockerfile.sdist
|
||||
name: awx_sdist_builder
|
||||
tag: "{{ awx_version }}"
|
||||
force: true
|
||||
|
||||
- name: Build AWX distribution
|
||||
shell: make sdist
|
||||
args:
|
||||
chdir: ..
|
||||
creates: "./dist/{{ awx_sdist_file }}"
|
||||
delegate_to: localhost
|
||||
docker_container:
|
||||
image: "awx_sdist_builder:{{ awx_version }}"
|
||||
name: awx_sdist_builder
|
||||
state: started
|
||||
detach: false
|
||||
volumes:
|
||||
- ../:/awx
|
||||
|
||||
- name: Set docker build base path
|
||||
set_fact:
|
||||
|
||||
Reference in New Issue
Block a user