Skip to content
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

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

TheRealHaoLiu
Copy link
Member

SUMMARY

one of my previous commit turn Dockerfile to a PHONY make target, to avoid collision between make docker-compose-build and make awx-kube-build this is a better approach

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • Other
AWX VERSION
awx: 21.13.1.dev13+ga9b60cc3e4
ADDITIONAL INFORMATION

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
Copy link
Member

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.

Copy link
Member Author

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

Copy link
Member

@john-westcott-iv john-westcott-iv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending Alans comments.

- 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
@AlanCoding
Copy link
Member

I think my comment was addressed by having it added to .PHONY

@AlanCoding AlanCoding closed this Apr 19, 2023
@AlanCoding AlanCoding reopened this Apr 19, 2023
@AlanCoding
Copy link
Member

...hit the wrong button.

@TheRealHaoLiu TheRealHaoLiu merged commit 33f1c35 into ansible:devel Apr 19, 2023
@TheRealHaoLiu TheRealHaoLiu deleted the different-dockerfile branch April 19, 2023 16:25
@TheRealHaoLiu
Copy link
Member Author

#13737

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants