-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use different dockerfile for docker-compose-build #13658
Use different dockerfile for docker-compose-build #13658
Conversation
DOCKER_BUILDKIT=1 docker build -t $(DEVEL_IMAGE_NAME) \ | ||
--build-arg BUILDKIT_INLINE_CACHE=1 \ | ||
--cache-from=$(DEV_DOCKER_TAG_BASE)/awx_devel:$(COMPOSE_TAG) . | ||
docker-compose-build: Dockerfile.dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't this use a stale Dockerfile.dev
unless you manually deleted it or touched it? That feels like it would inevitably give undesired behavior, since over time, people are almost sure to have a stale one around.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's how all the other Dockerfile target works,
since generating the Dockerfile is not very expensive what if we just turn all the Dockerfile targets PHONY? this way we avoid having the stale Dockerfile problem altogether
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pending Alans comments.
a9b60cc
to
7e536b9
Compare
- use different dockerfile for awx_devel and awx image - make all Dockerfile* targets PHONY (bc its cheap to run) - fix HEADLESS not working for awx-kube-build
7e536b9
to
592920e
Compare
I think my comment was addressed by having it added to .PHONY |
...hit the wrong button. |
SUMMARY
one of my previous commit turn Dockerfile to a PHONY make target, to avoid collision between
make docker-compose-build
andmake awx-kube-build
this is a better approachISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION