pschmitt / docker-flicd

Docker container for the Flic Button daemon from https://github.com/50ButtonsEach/fliclib-linux-hci
https://hub.docker.com/r/pschmitt/flicd/
3 stars 1 forks source link

Alpine version not working on raspberry pi #2

Open zimpower opened 5 years ago

zimpower commented 5 years ago

Thanks for making this project - very helpful.

I have successfully got the ubuntu Dockerfile to build and run on Raspberry Pi:

Linux pi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux

using ENV ARCH=armv6l in the Dockerfile.

However I was hoping for a smaller, lighter version so I tried your Dockerfile.alpine variant. It built fine but when I tried to run it I saw the following error:

$ docker logs -f flic
standard_init_linux.go:207: exec user process caused "no such file or directory"
standard_init_linux.go:207: exec user process caused "no such file or directory"
standard_init_linux.go:207: exec user process caused "no such file or directory"
standard_init_linux.go:207: exec user process caused "no such file or directory"

I am not experienced enough in docker on the pi to understand where the issue may lie ... any ideas?

Thanks again.

Below is my docker build output in case important:

Sending build context to Docker daemon   16.9kB
Step 1/8 : FROM alpine:latest
latest: Pulling from library/alpine
Digest: sha256:644fcb1a676b5165371437feaa922943aaf7afcfa8bfee4472f6860aad1ef2a0
Status: Downloaded newer image for alpine:latest
 ---> ef872b76f64d
Step 2/8 : MAINTAINER Philipp Schmitt <philipp@schmitt.co>
 ---> Running in 3c4fb2b7b12c
Removing intermediate container 3c4fb2b7b12c
 ---> bef71414c42f
Step 3/8 : ENV ARCH=armv6l
 ---> Running in b4165a44a1ff
Removing intermediate container b4165a44a1ff
 ---> f4bdfdaa5c76
Step 4/8 : RUN apk --no-cache --virtual deps add git &&     git clone https://github.com/50ButtonsEach/fliclib-linux-hci /tmp/src &&     cp /tmp/src/bin/${ARCH}/flicd /usr/bin/flicd &&     chmod +x /usr/bin/flicd &&     mkdir /config &&     rm -rf /tmp/src &&     apk del deps
 ---> Running in 0e689b606367
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/armv7/APKINDEX.tar.gz
(1/9) Installing ca-certificates (20190108-r0)
(2/9) Installing nghttp2-libs (1.35.1-r0)
(3/9) Installing libssh2 (1.8.2-r0)
(4/9) Installing libcurl (7.64.0-r1)
(5/9) Installing libgcc (8.2.0-r2)
(6/9) Installing expat (2.2.6-r0)
(7/9) Installing pcre2 (10.32-r1)
(8/9) Installing git (2.20.1-r0)
(9/9) Installing deps (0)
Executing busybox-1.29.3-r10.trigger
Executing ca-certificates-20190108-r0.trigger
OK: 14 MiB in 23 packages
Cloning into '/tmp/src'...
WARNING: (1/9) Purging deps (0)
(2/9) Purging git (2.20.1-r0)
Ignoring APKINDEX.b89edf6e.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.737f7e01.tar.gz: No such file or directory
(3/9) Purging libcurl (7.64.0-r1)
(4/9) Purging ca-certificates (20190108-r0)
Executing ca-certificates-20190108-r0.post-deinstall
(5/9) Purging nghttp2-libs (1.35.1-r0)
(6/9) Purging libssh2 (1.8.2-r0)
(7/9) Purging expat (2.2.6-r0)
(8/9) Purging libgcc (8.2.0-r2)
(9/9) Purging pcre2 (10.32-r1)
Executing busybox-1.29.3-r10.trigger
OK: 4 MiB in 14 packages
Removing intermediate container 0e689b606367
 ---> b352f1f5ce7e
Step 5/8 : WORKDIR /config
 ---> Running in ff17837e251d
Removing intermediate container ff17837e251d
 ---> 5b8fd41ff863
Step 6/8 : VOLUME ["/config"]
 ---> Running in 2b9bd8ed4f4c
Removing intermediate container 2b9bd8ed4f4c
 ---> 6e00bc637645
Step 7/8 : EXPOSE 5551
 ---> Running in fabde09a186b
Removing intermediate container fabde09a186b
 ---> 50aea843b3cd
Step 8/8 : ENTRYPOINT ["/usr/bin/flicd", "-f", "/config/db", "-s", "0.0.0.0", "-p", "5551"]
 ---> Running in e5bb2165043a
Removing intermediate container e5bb2165043a
 ---> 23412774d55b
Successfully built 23412774d55b
Successfully tagged zimpower/flic-alpine:latest