Live data from Hacker News

Show HN: Docker-phobia: Analyze Docker image size with a treemap

github.com

11–20 of 31 posts

Re: Show HN: Docker-phobia: Analyze Docker image size with a treemap

#11
post #6

Why does this need to pipe a script into bash from a non-github origin? And in that script, you're actually piping another script from yet another domain (` https://goblin.reaper.im/ `), where reaper.im looks like some kind of ad-infested parking domain?

Looks like goblin.run is a project that lets you install golang projects without having golang installed. OP should probably preface the installation script with this.

or just use, I don't know, docker?

Re: Show HN: Docker-phobia: Analyze Docker image size with a treemap

#12
post #6

Why does this need to pipe a script into bash from a non-github origin? And in that script, you're actually piping another script from yet another domain (` https://goblin.reaper.im/ `), where reaper.im looks like some kind of ad-infested parking domain?

You can also install it with go, I updated the readme

go install github.com/remorses/docker-phobia

Re: Show HN: Docker-phobia: Analyze Docker image size with a treemap

#13

Not using https is bad. curl -sf http://goblin.run/github.com/remorses/docker-phobia | sh Also why just include that shell script in the repo and have people curl that?

Goblin is a service that builds a go binary for your platform on the fly and downloads it in PATH. This is a much faster way than setting up Github Actions to build an executable for every possible platform on every release. You can also use go install if you know what you are doing.

Re: Show HN: Docker-phobia: Analyze Docker image size with a treemap

#14
post #2

Cool, gonna try this soon. Would be great to use in combination with Dive ( https://github.com/wagoodman/dive )

It says in the README it leverages Dive. Basically it's a visualization for Dive's JSON output, which I'd very much prefer to exist as exactly that -- something I can pipe Dive's JSON into. No need to wrap Dive for that.

Re: Show HN: Docker-phobia: Analyze Docker image size with a treemap

#15
post #5

Not using https is bad. curl -sf http://goblin.run/github.com/remorses/docker-phobia | sh Also why just include that shell script in the repo and have people curl that?

curl should probably scream when it detects piping unencrypted wan (not local ips) connections to shell, sort of like what openssh does when a host’s fingerprint changes

How could curl detect where it's piped to?

Re: Show HN: Docker-phobia: Analyze Docker image size with a treemap

#16

Not using https is bad. curl -sf http://goblin.run/github.com/remorses/docker-phobia | sh Also why just include that shell script in the repo and have people curl that?

Goblin is a service that builds a go binary for your platform on the fly and downloads it in PATH. This is a much faster way than setting up Github Actions to build an executable for every possible platform on every release. You can also use go install if you know what you are doing.

> This is a much faster way than setting up Github Actions to build an executable for every possible platform on every release

It's not even that hard. Just use GoReleaser.

https://goreleaser.com/

Re: Show HN: Docker-phobia: Analyze Docker image size with a treemap

#17
post #4

I don't remember what this type of visualisation this is called, but I really like it for understanding disk use quickly. When I wish to drill into detail I find a list helps me more but the box layout is usually where I like to start. Looking forward to trying this.

It's a treemap graph, frontend people use it all the time to analyze a website javascript bundle size, I created this so Docker people can make smaller images more easily

Re: Show HN: Docker-phobia: Analyze Docker image size with a treemap

#18
post #14
post #2

Cool, gonna try this soon. Would be great to use in combination with Dive ( https://github.com/wagoodman/dive )

It says in the README it leverages Dive. Basically it's a visualization for Dive's JSON output, which I'd very much prefer to exist as exactly that -- something I can pipe Dive's JSON into. No need to wrap Dive for that.

Dive doesn't have a JSON output, I had to use the internal API to do it.

Re: Show HN: Docker-phobia: Analyze Docker image size with a treemap

#19
post #5

Not using https is bad. curl -sf http://goblin.run/github.com/remorses/docker-phobia | sh Also why just include that shell script in the repo and have people curl that?

curl should probably scream when it detects piping unencrypted wan (not local ips) connections to shell, sort of like what openssh does when a host’s fingerprint changes

The shell would have to give the warning
Post reply on HN