Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifications to get it to work on Ubuntu Server 20.04 on 64 bit ARM #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
FROM alpine

FROM alpine:3.9
STOPSIGNAL 9

RUN apk --update --no-cache add --virtual build-dependencies build-base && \
cd /tmp && \
wget https://github.com/joan2937/pigpio/archive/master.zip && \
unzip -qq master.zip && \
cd pigpio-master && \
sed -i 's/|PROT_EXEC,/,/g' pigpio.c && \
make && \
sed -i 's/ldconfig/ldconfig \/usr\/local/g' Makefile && \
make install && \
Expand All @@ -15,5 +14,6 @@ RUN apk --update --no-cache add --virtual build-dependencies build-base && \
apk --no-cache add tini

COPY entrypoint.sh /entrypoint.sh
RUN chmod u+x /entrypoint.sh

ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"]
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ echo "Starting PigPiod..."
# gpiod sometimes leaves pid files around, just clean them
rm -f /var/run/pigpio.pid

exec /usr/local/bin/pigpiod -g -a 1 $@
exec /usr/local/bin/pigpiod -g $@