News for hackers. Stuff that matters.
Re:Show HN: Docker-phobia: Analyze Docker image size with a ... by Scipio_Afri on Sunday April 28, 2024 @01:27PM (#40190190)
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?

Re:Show HN: Docker-phobia: Analyze Docker image size with a ... by remorses on Sunday April 28, 2024 @03:16PM (#40191049)
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 ... by leetrout on Sunday April 28, 2024 @03:23PM (#40191100)
> 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 ... by xmorse on Sunday April 28, 2024 @03:29PM (#40191142)
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 ... by KronisLV on Sunday April 28, 2024 @04:07PM (#40191378)
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 ... by Wingy on Sunday April 28, 2024 @02:31PM (#40190670)
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
Re:Show HN: Docker-phobia: Analyze Docker image size with a ... by mr_mitm on Sunday April 28, 2024 @03:22PM (#40191092)
How could curl detect where it's piped to?
Re:Show HN: Docker-phobia: Analyze Docker image size with a ... by take-five on Sunday April 28, 2024 @03:51PM (#40191283)
Something like (in Python)

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

Re:Show HN: Docker-phobia: Analyze Docker image size with a ... by Zambyte on Sunday April 28, 2024 @04:20PM (#40191464)
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 ... by timando on Sunday April 28, 2024 @08:32PM (#40193224)
Iterate through /proc/<pid>/fd and check for the pipe id in the symlink target.
Re:Show HN: Docker-phobia: Analyze Docker image size with a ... by adamomada on Sunday April 28, 2024 @03:26PM (#40191119)
The shell would have to give the warning
Re:Show HN: Docker-phobia: Analyze Docker image size with a ... by jijijijij on Sunday April 28, 2024 @02:43PM (#40190761)
Lol. This is an hilariously shady instruction. Is this a docker inside joke or something?