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

Docker preserve sources #590

Merged
merged 2 commits into from
Jun 14, 2023
Merged

Docker preserve sources #590

merged 2 commits into from
Jun 14, 2023

Conversation

samm81
Copy link
Contributor

@samm81 samm81 commented Jun 14, 2023

Description

since dependency hashes are kept in the Makefile, changing them will
make docker start from the COPY Makefile . line, which will then
correctly refetch sources

however, if only go source files are touched, docker won't throwaway
all the fetching and compiling it did previously

Notes for Reviewers

I've been developing in the docker containers and this massively reduces compile time

Signed commits

  • Yes, I signed my commits.

since dependency hashes are kept in the `Makefile`, changing them will
make `docker` start from the `COPY Makefile .` line, which will then
correctly refetch sources

however, if only go source files are touched, `docker` won't throwaway
all the fetching and compiling it did previously
Copy link
Owner

@mudler mudler left a comment

Choose a reason for hiding this comment

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

looks good, thanks!

@mudler mudler merged commit 7b9dcb0 into mudler:master Jun 14, 2023
@samm81 samm81 deleted the docker-preserve-sources branch June 16, 2023 15:55
mudler added a commit that referenced this pull request Jun 17, 2023
@samm81 samm81 mentioned this pull request Jun 22, 2023
1 task
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.

2 participants