Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Autopilot fails on Alpine #50

Open
rjain-pivotal opened this issue Feb 4, 2018 · 0 comments
Open

Autopilot fails on Alpine #50

rjain-pivotal opened this issue Feb 4, 2018 · 0 comments

Comments

@rjain-pivotal
Copy link

cloudfoundry/cli#1314

After looking into this issue, it appears that the plugin is actually not complied statically!

$ ldd autopilot-linux
linux-vdso.so.1 => (0x00007ffdb6394000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8b0a778000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8b0a398000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8b0a997000)
So it fails during the cf install-plugin step in your docker file because alpine Linux does not have those libraries. The CF CLI tries to run the plugin it's installing during the install-plugin phase to get metadata about said plugin and a segfault occurs, thus causing the error you see in front of you.

There are two solutions:

Compile the autopilot plugin yourself with the following build command:
$ CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -a -tags netgo -installsuffix netgo -ldflags "-w -s -extldflags "-static"" -o autopilot-linux
submit an issue against autopilot

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant