-
Notifications
You must be signed in to change notification settings - Fork 286
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
chore(Dockerfile): add local dev env target (PROJQUAY-2501) #883
Conversation
Can one of the admins verify this patch? |
f5b80cb
to
f3f80f5
Compare
context: . | ||
dockerfile: ./local-dev/Dockerfile | ||
target: local-dev-env |
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.
Oh, I didn't know you could stop at specific stage. That's neat.
@flavianmissi I think the commit check is not passing because the ticket is missing from your commit header (it's in the Github PR's title, but not in the actual git commit). |
Ooh that makes sense! I'll fix then merge. Thx for reviewing! |
When specified, the new build target (aka stage) builds quay the way local-dev/Dockerfile used to, using local-dev/config.yml as configuration, and starting up only the necessary tools for development. See docker-compose.yml services:quay:build:target for how it's used. Production builds should not be affected since the new target is not referenced from anywhere but the docker-compose.yml.
f3f80f5
to
b8de073
Compare
@kleesc I reworded the commit so all checks would pass but now I need another approval 😅 |
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.
LGTM
…y#883) When specified, the new build target (aka stage) builds quay the way local-dev/Dockerfile used to, using local-dev/config.yml as configuration, and starting up only the necessary tools for development. See docker-compose.yml services:quay:build:target for how it's used. Production builds should not be affected since the new target is not referenced from anywhere but the docker-compose.yml.
To run a local development environment we currently use docker-compose with the custom
local-dev/Dockerfile
.For better reuse of the improvements made to
Dockerfile
, the specific bits oflocal-dev/Dockerfile
have been moved toDockerfile
as a build stage calledlocal-dev-env
, andlocal-dev/Dockerfile
has been removed. This change also ensures that future improvements toDockerfile
will automatically be reused in our local dev envs.NOTE:fixed in #885setuptools
version had to be pinned to 57.5.0. Versions >=58 break the installation of funcparserlib