Dockerfile.arm64v8 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. FROM arm64v8/ubuntu:16.04
  2. RUN groupadd --gid 1000 builduser \
  3. && useradd --uid 1000 --gid builduser --shell /bin/bash --create-home builduser
  4. RUN groupadd --gid 114 jenkins \
  5. && useradd --uid 110 --gid jenkins --shell /bin/bash --create-home jenkins
  6. # Set up TEMP directory
  7. ENV TEMP=/tmp
  8. RUN chmod a+rwx /tmp
  9. RUN apt-get update && apt-get install -y\
  10. bison \
  11. build-essential \
  12. clang \
  13. curl \
  14. gperf \
  15. git \
  16. libasound2 \
  17. libasound2-dev \
  18. libcap-dev \
  19. libcups2-dev \
  20. libdbus-1-dev \
  21. libgconf-2-4 \
  22. libgconf2-dev \
  23. libgnome-keyring-dev \
  24. libgtk2.0-0 \
  25. libgtk2.0-dev \
  26. libgtk-3-0 \
  27. libgtk-3-dev \
  28. libnotify-dev \
  29. libnss3 \
  30. libnss3-dev \
  31. libx11-xcb-dev \
  32. libxss1 \
  33. libxtst-dev \
  34. libxtst6 \
  35. lsb-release \
  36. locales \
  37. ninja \
  38. python-setuptools \
  39. python-pip \
  40. python-dbusmock \
  41. wget \
  42. xvfb
  43. # Install node.js
  44. RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
  45. RUN apt-get update && apt-get install -y nodejs
  46. # Install crcmod
  47. RUN pip install -U crcmod
  48. ADD tools/xvfb-init.sh /etc/init.d/xvfb
  49. RUN chmod a+x /etc/init.d/xvfb
  50. # Install ninja in /usr/local
  51. RUN cd /usr/local && git clone https://github.com/martine/ninja.git -b v1.5.3
  52. RUN cd /usr/local/ninja && ./configure.py --bootstrap
  53. USER builduser
  54. WORKDIR /home/builduser