Live data from Hacker News

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

github.com

21–30 of 31 posts

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

#21

Earlier quoted context omitted.

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/

And then later add a script that downloads the binary from Github releases. Doesn't improve the situation with curl script haters

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

#22
post #15
post #5

Earlier quoted context omitted.

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?

Something like (in Python)

os.isatty(sys.stdout.fileno())

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

#23
post #21

Earlier quoted context omitted.

> 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/

And then later add a script that downloads the binary from Github releases. Doesn't improve the situation with curl script haters

I feel like the assumption is that GitHub would be more proactive about stopping malware being distributed from their platform.

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

#24
post #15

Earlier quoted context omitted.

How could curl detect where it's piped to?

Something like (in Python) os.isatty(sys.stdout.fileno())

That doesn't say where it's piped though. It could be redirected to a file, or piped to something harmless like jq.

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

#25
post #11

Earlier quoted context omitted.

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?

Aren't go binaries statically compiled? Why is anything other than a static binary download and `chmod +x` even needed?

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

#26
post #25
post #11

Earlier quoted context omitted.

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

Aren't go binaries statically compiled? Why is anything other than a static binary download and `chmod +x` even needed?

sure, for each arch.. or just use the thing that the tool is designed for as the distribution mechanism. A `docker run ...` is one step, not the two you're advocating.

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

#27
post #15
post #5

Earlier quoted context omitted.

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?

Iterate through /proc//fd and check for the pipe id in the symlink target.

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

#29
post #11

Earlier quoted context omitted.

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?

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

The author is apparently afraid of docker, hence Docker-phobia.

Post reply on HN