Skip to content

Use better Dockerfile layer ordering to maximize cacheability#2683

Merged
devinrsmith merged 1 commit intodeephaven:mainfrom
devinrsmith:deephaven-docker-layer-ordering
Jul 26, 2022
Merged

Use better Dockerfile layer ordering to maximize cacheability#2683
devinrsmith merged 1 commit intodeephaven:mainfrom
devinrsmith:deephaven-docker-layer-ordering

Conversation

@devinrsmith
Copy link
Copy Markdown
Member

No description provided.

Comment thread py/client/build.gradle
copyFile('project', '/project')
workingDir('/project')
environmentVariable 'DH_HOST', deephavenDocker.containerName.get()
environmentVariable 'DH_PORT', '8080'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

wouldnt it be better to set these first, to avoid adding two more layers each time any project contents change?

Copy link
Copy Markdown
Member Author

@devinrsmith devinrsmith Jul 26, 2022

Choose a reason for hiding this comment

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

containerName is randomized with every gradle invocation, so each time it changes it busts all the layers after it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah fair point. The port is still fair game, but approved.

@devinrsmith devinrsmith requested a review from niloc132 July 26, 2022 15:14
@devinrsmith devinrsmith merged commit 5239c39 into deephaven:main Jul 26, 2022
@devinrsmith devinrsmith deleted the deephaven-docker-layer-ordering branch July 26, 2022 21:10
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants