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

Reduce size of the docker image #213

Closed
big-andy-coates opened this issue Oct 4, 2023 · 0 comments · Fixed by #214
Closed

Reduce size of the docker image #213

big-andy-coates opened this issue Oct 4, 2023 · 0 comments · Fixed by #214
Assignees
Labels
enhancement New feature or request

Comments

@big-andy-coates
Copy link
Member

Would it be possible to reduce the size of the cli docker image? It's currently coming in at 1.7GB, which seems excessive for a cli.

@big-andy-coates big-andy-coates added the enhancement New feature or request label Oct 4, 2023
big-andy-coates added a commit that referenced this issue Oct 4, 2023
fixes: #213

Have the Gradle build unpack the distribution tar archive. This means there is no need to install tar or to have the tar file in the Docker image.
big-andy-coates added a commit that referenced this issue Oct 4, 2023
@bluemonk3y bluemonk3y pinned this issue Oct 4, 2023
bluemonk3y pushed a commit that referenced this issue Oct 4, 2023
* Reduce size of cli docker image by removing tar

fixes: #213

Have the Gradle build unpack the distribution tar archive. This means there is no need to install tar or to have the tar file in the Docker image.

* oops - still need to copy the expanded archive in

* Switch to a smaller base image

fixes: #213
bluemonk3y added a commit that referenced this issue Oct 9, 2023
* Reduce size of cli docker image by removing tar

fixes: #213

Have the Gradle build unpack the distribution tar archive. This means there is no need to install tar or to have the tar file in the Docker image.

* oops - still need to copy the expanded archive in

* Switch to a smaller base image

fixes: #213

* Support arm64

fixes: #216

Unfortunately, this does mean we lose the security of using a hash for the version.

---------

Co-authored-by: Neil Avery <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants