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

Optimize ShellCheck installation in Docker image #1729

Merged
merged 1 commit into from
Feb 18, 2018

Conversation

PeterDaveHello
Copy link
Collaborator

@PeterDaveHello PeterDaveHello commented Feb 13, 2018

Use pre-built static release binary instead of building ShellCheck from the source code, this change would save disk space, time, and much computing resources.

Docker image size:
Original: 1.31GB, New: 569MB

Compressed Docker image size:
Original: 319MB, New: 223MB
(See: https://hub.docker.com/r/peterdavehello/nvm/tags/, v0.33.8 vs v0.33.8-new)

It also saves more than 50% build time, 9:50 vs 4:15 on my computer.

Use pre-built static release binary instead of building ShellCheck from
the source code, this change would save disk space, time, and much
computing resources.
Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

Thanks!

Incidentally, I now have a Dockerhub account. If I wanted to start publishing official docker images as part of the release process (to which I've also give you access), it'd be great if you could file an issue outlining the steps and what would be involved :-)

@ljharb ljharb force-pushed the improve-shellcheck-in-docker branch from 8584268 to 77da9f5 Compare February 18, 2018 06:19
@ljharb ljharb merged commit 77da9f5 into nvm-sh:master Feb 18, 2018
@PeterDaveHello PeterDaveHello deleted the improve-shellcheck-in-docker branch February 18, 2018 08:46
@PeterDaveHello
Copy link
Collaborator Author

PeterDaveHello commented Feb 18, 2018

Yeah I can outline the steps, but I'd like to figure out the purpose of that image, if it's kind of nvm release, I'd like to hook the Docker Hub repository with this nvm repository.

BTW, is it possible to also have access of this GitHub repository? Or maybe even move it under an organization?

@ljharb
Copy link
Member

ljharb commented Feb 18, 2018

That’s a longer question and effort; we should proceed for now as if my lack of admin access to the repo, as well as it’s location, will continue unchanged.

@PeterDaveHello
Copy link
Collaborator Author

Yeah I understand, maybe can also discuss with @creationix ?

@ljharb
Copy link
Member

ljharb commented Feb 18, 2018

Already have; as i said, it’s a longer effort and for the time being isn’t going to change.

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