CenturyLinkLabs / golang-builder

Containerized build environment for compiling an executable Golang package and packaging it in a light-weight Docker container.
Apache License 2.0
398 stars 85 forks source link

Builder cross #5

Closed dpetersen closed 9 years ago

dpetersen commented 9 years ago

I'm not 100% sure this works yet, but I want to PR it so I don't forget. I mean, I might still forget, but...

Anyway, this is really similar to the regular builder. The Dockerfile only differs in the Go image it descends from (really wish there was a way to source other Dockerfiles), and the build script is a stripped-down version of the regular one. I took out any flag I wasn't 100% sure worked in the cross-compiling context. Somebody else can add them if they need them and can test that they work.

This doesn't have the self-extracting stuff that just got put in the builder, but I can't imagine that thing works as-is on multiple platforms.

dpetersen commented 9 years ago

Oh right, I need to update the README on this, too.

dpetersen commented 9 years ago

I talked to Brian about this and have tested it on panamaxcli.