Skip to content

Instantly share code, notes, and snippets.

@arifnd
Created December 24, 2016 19:49
Show Gist options
  • Select an option

  • Save arifnd/b194fb7c5019c16b95db05aefe537465 to your computer and use it in GitHub Desktop.

Select an option

Save arifnd/b194fb7c5019c16b95db05aefe537465 to your computer and use it in GitHub Desktop.
official no-ip Dynamic DNS Update client Dockerfile for Odroid C2
FROM arifnd/c2-alpine
RUN apk add --update --virtual .build-dependencies tar build-base && \
wget -qO noip.tar.gz http://www.noip.com/client/linux/noip-duc-linux.tar.gz && \
mkdir noip && tar -C noip --strip-components=1 -xvf ./noip.tar.gz && \
cd noip && sed -i '/no-ip2/d' Makefile && make install && \
apk del .build-dependencies && rm -rf /var/cache/apk/* && rm ../noip.tar.gz
CMD noip2; while pgrep noip > -; do echo "Process is running"; sleep 5; done; echo "No-ip has died"; exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment