mirror of
https://github.com/ansible/awx.git
synced 2026-02-05 03:24:50 -03:30
Support pulling the dev container image from gcr
This will be branch-relative. If you are ont he `devel` branch then it will pull that tag, it will try to pull the branch you are on and can be overridden with the COMPOSE_TAG environment variable
This commit is contained in:
5
Makefile
5
Makefile
@@ -9,6 +9,7 @@ NODE ?= node
|
|||||||
NPM_BIN ?= npm
|
NPM_BIN ?= npm
|
||||||
DEPS_SCRIPT ?= packaging/bundle/deps.py
|
DEPS_SCRIPT ?= packaging/bundle/deps.py
|
||||||
GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
|
GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
|
||||||
|
COMPOSE_TAG ?= $(GIT_BRANCH)
|
||||||
|
|
||||||
VENV_BASE ?= /venv
|
VENV_BASE ?= /venv
|
||||||
SCL_PREFIX ?=
|
SCL_PREFIX ?=
|
||||||
@@ -721,10 +722,10 @@ install:
|
|||||||
|
|
||||||
# Docker Compose Development environment
|
# Docker Compose Development environment
|
||||||
docker-compose:
|
docker-compose:
|
||||||
docker-compose -f tools/docker-compose.yml up --no-recreate
|
TAG=$(COMPOSE_TAG) docker-compose -f tools/docker-compose.yml up --no-recreate
|
||||||
|
|
||||||
docker-compose-test:
|
docker-compose-test:
|
||||||
cd tools && docker-compose run --rm --service-ports tower /bin/bash
|
cd tools && TAG=$(COMPOSE_TAG) docker-compose run --rm --service-ports tower /bin/bash
|
||||||
|
|
||||||
MACHINE?=default
|
MACHINE?=default
|
||||||
docker-clean:
|
docker-clean:
|
||||||
|
|||||||
@@ -2,9 +2,7 @@ version: '2'
|
|||||||
services:
|
services:
|
||||||
# Primary Tower Development Container
|
# Primary Tower Development Container
|
||||||
tower:
|
tower:
|
||||||
build:
|
image: gcr.io/ansible-tower-engineering/tower_devel:${TAG}
|
||||||
context: ..
|
|
||||||
dockerfile: tools/docker-compose/Dockerfile
|
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
- "8013:8013"
|
- "8013:8013"
|
||||||
|
|||||||
Reference in New Issue
Block a user