ernoaapa / eliot

Open source system for managing containerized applications in IoT device
https://docs.eliot.run
Apache License 2.0
269 stars 20 forks source link

Run build with CGO_ENABLED=0 #12

Closed ernoaapa closed 6 years ago

ernoaapa commented 6 years ago

Previously eliotd Docker image what we produced were failing to following error in Linuxkit:

standard_init_linux.go:195: exec user process caused "no such file or directory"

After testing out the binaries in alpine container, got error: sh: /eliotd: not found

Found similar issue here: https://github.com/gliderlabs/docker-alpine#78

Fixed by compiling binaries with CGO_ENABLED=0. Also added container text execution to Circleci to verify that container works.