Skip to content

Experimenting with speeding up development Dockerfile build#5528

Closed
deivid-rodriguez wants to merge 2 commits intomainfrom
deivid-rodriguez/speed-up-dev-dockerfile-build
Closed

Experimenting with speeding up development Dockerfile build#5528
deivid-rodriguez wants to merge 2 commits intomainfrom
deivid-rodriguez/speed-up-dev-dockerfile-build

Conversation

@deivid-rodriguez
Copy link
Copy Markdown
Contributor

No description provided.

This could technically speed up booting some scripts a bit, but it
differs from the most standard Bundler setup and makes things hard to
work with the new version switcher shipped with Bundler.
I think this gem location is only read, and it's the same for every
ecosystem. Maybe it can be reused.
@deivid-rodriguez
Copy link
Copy Markdown
Contributor Author

I think maybe this works? But CI is not a good way to test this kind of change, since it's us who exercise the development Dockerfile, not the CI. But at least we know the change I made in the main Dockerfile does not break CI.

RUN cd nuget && bundle config path ${CODE_DIR}/common/.bundle
RUN cd python && bundle config path ${CODE_DIR}/common/.bundle
RUN cd pub && bundle config path ${CODE_DIR}/common/.bundle
RUN cd terraform && bundle config path ${CODE_DIR}/common/.bundle
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If we do this, I can condense this to a single layer, just wanted to put a proof of concept out quickly.

@deivid-rodriguez
Copy link
Copy Markdown
Contributor Author

Closing as per #5520 (comment).

@deivid-rodriguez deivid-rodriguez deleted the deivid-rodriguez/speed-up-dev-dockerfile-build branch August 15, 2022 19:32
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.

1 participant