Re:Outrun: Execute local command using processing power of a...
by brettproctor on Thursday March 18, 2021 @12:58PM
(#26504767)
I could see this being really useful for the team I'm on, specifically for doing docker builds of rust binaries. The build always has to start from scratch, and being able to easily used a remote high power machine could really speed this up. Thanks for sharing!
[ Parent
| on HN ]
Re:Outrun: Execute local command using processing power of a...
by lewisinc on Thursday March 18, 2021 @01:15PM
(#26505006)
Builds don't "have" to start from scratch. If you're building in a docker context you can mount a volume containing build artifacts (target directory). Or `sccache` if you want those artifacts stored in a remote store such as S3. I'm sure there's other solutions as well, but not clearing build artifacts in between builds would be a simpler win over maintaining separate, shared infrastructure.
Re:Outrun: Execute local command using processing power of a...
by fenollp on Thursday March 18, 2021 @04:58PM
(#26507492)
Then you'd be interested by https://github.com/denzp/cargo-wharf
And DOCKER_HOST, and BuildKit!
And if any of this makes sense: https://fenollp.github.io/faster-rust-builds-docker_host
Re:Outrun: Execute local command using processing power of a...
by nucleardog on Thursday March 18, 2021 @01:10PM
(#26504928)
It's relatively easy with Docker to just point your local docker tooling at a remote daemon.
That way during the build process you're only transferring the cwd around your Dockerfile (the build state) to the daemon, and it takes it from there.
Versus this that would be doing a lot of file i/o during the build process all back across the wire.