3 ms·
How would you install the build dependencies with busybox? Go requires some packages to build, from the Dockerfile: apt-get install -y ca-certificates curl gcc
by 0x006A 12y ago
How would you install the build dependencies with busybox? Go requires some packages to build, from the Dockerfile:
apt-get install -y ca-certificates curl gcc libc6-dev bzr git mercurial
- zimbatm 12y agoIt's possible to install another package manager like opkg. See https://github.com/progrium/busybox https://github.com/progrium/busybox
- 0x006A 12y agoright, that would be an option, if opkg had packages for python mercurial or bzr. (those are needed for go get to work). Don't see those in http://downloads.openwrt.org/snapshots/trunk/x86_64/packages/packages/ http://downloads.openwrt.org/snapshots/trunk/x86_64/packages...
- zimbatm 12y agoAnother solution is to build your go executable in a different container and import it into a busybox container. That changes the layering from: debian add go, bzr, mercurial, python, ... build executable to: busybox executable That reduces the amount of data that needs to be downloaded on new boxes by a factor of ten or so.
- voltagex_ 12y agoYeah, that looks good - I'm in Australia so anything that reduces the amount I need to download is excellent.
- deleted 12y ago[deleted]