fnproject/cli

FN cli does not work on Alpine linux

Opened this issue · 1 comments

The reason is custom libc implementation on Alpine linux. As w/a following can be suggested to customer in installation doc.
apk add --no-cache libc6-compat
After that go binaries built on linux with common libc will work on Alpine linux too.

Alpine 3.9 is used as base image.

docker pull alpine:3.9
docker run -it --rm alpine:3.9 /bin/sh
/ # apk add curl
(1/5) Installing ca-certificates (20190108-r0)
(2/5) Installing nghttp2-libs (1.35.1-r0)
(3/5) Installing libssh2 (1.8.0-r4)
(4/5) Installing libcurl (7.64.0-r1)
(5/5) Installing curl (7.64.0-r1)
Executing busybox-1.29.3-r10.trigger
Executing ca-certificates-20190108-r0.trigger
OK: 7 MiB in 19 packages
/ # curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh

sh: fn: not found
/ #
/ #
/ # /usr/local/bin/fn
/bin/sh: /usr/local/bin/fn: not found
/ # apk add --no-cache libc6-compat
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
(1/1) Installing libc6-compat (1.1.20-r3)
OK: 7 MiB in 20 packages
/ # /usr/local/bin/fn

Fn Command Line Tool - Version 0.5.62