Dockerfile 1.1 KB

12345678910111213141516171819202122
  1. FROM ubuntu:14.04
  2. MAINTAINER Benjamin Henrion <zoobab@gmail.com>
  3. RUN DEBIAN_FRONTEND=noninteractive apt-get update -y -q
  4. RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q --force-yes tar git curl nano wget dialog net-tools build-essential vim emacs apt-utils file uuid-dev cmake asciidoc python autoconf automake libtool pkg-config xmlto sudo gettext apt-utils
  5. RUN useradd -d /home/zmq -m -s /bin/bash zmq
  6. RUN echo "zmq ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/zmq
  7. RUN chmod 0440 /etc/sudoers.d/zmq
  8. USER zmq
  9. # install android-ndk
  10. RUN cd ~ && wget -q http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin -O android-ndk-r10e-linux-x86_64.bin && chmod +x android-ndk-r10e-linux-x86_64.bin
  11. RUN cd ~ && ./android-ndk-r10e-linux-x86_64.bin
  12. ENV ANDROID_NDK_ROOT /home/zmq/android-ndk-r10e
  13. ENV TOOLCHAIN_NAME arm-linux-androideabi-4.9
  14. ENV TOOLCHAIN_HOST arm-linux-androideabi
  15. ENV TOOLCHAIN_PATH ${ANDROID_NDK_ROOT}/toolchains/${TOOLCHAIN_NAME}/prebuilt/linux-x86_64/bin
  16. ENV TOOLCHAIN_ARCH arm
  17. # build libzmq for android
  18. RUN cd ~ && git clone --depth 1 https://github.com/zeromq/libzmq.git
  19. RUN cd ~/libzmq/builds/android && ./build.sh