diff options
author | Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> | 2024-03-19 20:09:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 20:09:15 +0100 |
commit | 7150f5edc69de9224b5aa1a4522c9914a8c28902 (patch) | |
tree | 1ba1bf5cbe7d8c6c9dd993d085787a2ad8de651d /Makefile | |
parent | Setting modification to address requests from UI_NEXT devs (#14996) (diff) | |
download | awx-7150f5edc69de9224b5aa1a4522c9914a8c28902.tar.xz awx-7150f5edc69de9224b5aa1a4522c9914a8c28902.zip |
Editable dependencies in docker compose development environment (#14979)
* Editable dependencies in docker compose development environment
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -47,6 +47,8 @@ VAULT ?= false VAULT_TLS ?= false # If set to true docker-compose will also start a tacacs+ instance TACACS ?= false +# If set to true docker-compose will install editable dependencies +EDITABLE_DEPENDENCIES ?= false VENV_BASE ?= /var/lib/awx/venv @@ -533,6 +535,7 @@ docker-compose-sources: .git/hooks/pre-commit -e enable_vault=$(VAULT) \ -e vault_tls=$(VAULT_TLS) \ -e enable_tacacs=$(TACACS) \ + -e install_editable_dependencies=$(EDITABLE_DEPENDENCIES) \ $(EXTRA_SOURCES_ANSIBLE_OPTS) docker-compose: awx/projects docker-compose-sources @@ -540,9 +543,15 @@ docker-compose: awx/projects docker-compose-sources ansible-playbook -i tools/docker-compose/inventory tools/docker-compose/ansible/initialize_containers.yml \ -e enable_vault=$(VAULT) \ -e vault_tls=$(VAULT_TLS) \ - -e enable_ldap=$(LDAP); + -e enable_ldap=$(LDAP); \ + $(MAKE) docker-compose-up + +docker-compose-up: $(DOCKER_COMPOSE) -f tools/docker-compose/_sources/docker-compose.yml $(COMPOSE_OPTS) up $(COMPOSE_UP_OPTS) --remove-orphans +docker-compose-down: + $(DOCKER_COMPOSE) -f tools/docker-compose/_sources/docker-compose.yml $(COMPOSE_OPTS) down --remove-orphans + docker-compose-credential-plugins: awx/projects docker-compose-sources echo -e "\033[0;31mTo generate a CyberArk Conjur API key: docker exec -it tools_conjur_1 conjurctl account create quick-start\033[0m" $(DOCKER_COMPOSE) -f tools/docker-compose/_sources/docker-compose.yml -f tools/docker-credential-plugins-override.yml up --no-recreate awx_1 --remove-orphans @@ -607,7 +616,7 @@ docker-clean: -$(foreach image_id,$(shell docker images --filter=reference='*/*/*awx_devel*' --filter=reference='*/*awx_devel*' --filter=reference='*awx_devel*' -aq),docker rmi --force $(image_id);) docker-clean-volumes: docker-compose-clean docker-compose-container-group-clean - docker volume rm -f tools_awx_db tools_vault_1 tools_ldap_1 tools_grafana_storage tools_prometheus_storage $(docker volume ls --filter name=tools_redis_socket_ -q) + docker volume rm -f tools_var_lib_awx tools_awx_db tools_vault_1 tools_ldap_1 tools_grafana_storage tools_prometheus_storage $(docker volume ls --filter name=tools_redis_socket_ -q) docker-refresh: docker-clean docker-compose |