mirror of
https://github.com/ansible/awx.git
synced 2026-02-04 02:58:13 -03:30
- removes local_docker installer and points community users to our development environment (make docker-compose) - provides a migration path from Local Docker Compose installations --> the dev environment - the dev env can now be configured to use an external database - consolidated the Local Docker and dev env docker-compose.yml files into one template file, used by the dockerfile role - added a 'sources' role to template out config files - the postgres data dir is no longer a bind-mount, it is a docker volume - the redis socket is not longer a bind-mount, it is a docker volume - the local_settings.py.docker-compose file no longer needs to be copied over in the dev env - Create tmp rsyslog.conf in rsyslog volume to avoid cross-linking. Previously, the tmp code-generated rsyslog.conf was being written to /tmp (by default). As a result, we were attempting to shutil.move() across volumes. - move k8s image build and push roles under tools/ansible - See tools/docker-compose/README.md for usage of these changes
32 lines
1017 B
YAML
32 lines
1017 B
YAML
---
|
|
- name: Set global version if not provided
|
|
set_fact:
|
|
awx_version: "{{ lookup('file', playbook_dir + '/../../VERSION') }}"
|
|
when: awx_version is not defined
|
|
|
|
- name: Verify awx-logos directory exists for official install
|
|
stat:
|
|
path: "../../awx-logos"
|
|
register: logosdir
|
|
failed_when: logosdir.stat.isdir is not defined or not logosdir.stat.isdir
|
|
when: awx_official|default(false)|bool
|
|
|
|
- name: Copy logos for inclusion in sdist
|
|
copy:
|
|
src: "../../awx-logos/awx/ui/client/assets/"
|
|
dest: "../awx/ui_next/public/static/media/"
|
|
when: awx_official|default(false)|bool
|
|
|
|
- name: Set awx image name
|
|
set_fact:
|
|
awx_image: "{{ awx_image|default('awx') }}"
|
|
|
|
# Calling Docker directly because docker-py doesnt support BuildKit
|
|
- name: Build AWX image
|
|
command: docker build -t {{ awx_image }}:{{ awx_version }} -f ../../{{ dockerfile_name }} ../..
|
|
|
|
- name: Tag awx images as latest
|
|
command: "docker tag {{ item }}:{{ awx_version }} {{ item }}:latest"
|
|
with_items:
|
|
- "{{ awx_image }}"
|