-
Notifications
You must be signed in to change notification settings - Fork 166
/
Copy pathubuntu1604_arm_cross.Dockerfile.j2
61 lines (50 loc) · 1.85 KB
/
ubuntu1604_arm_cross.Dockerfile.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM ubuntu:16.04
ENV LC_ALL=C
RUN apt-get update \
&& apt-get dist-upgrade -y \
&& apt-get install -y software-properties-common \
&& add-apt-repository ppa:ubuntu-toolchain-r/test \
&& apt-get update \
&& apt-get install -y \
ccache \
g++ \
gcc \
git \
openjdk-8-jre-headless \
curl \
python3-pip \
python-all \
python-software-properties \
libfontconfig1 \
make \
gcc-4.9-multilib \
g++-4.9-multilib \
gcc-6-multilib \
g++-6-multilib
RUN pip3 install tap2junit=={{ tap2junit_version }}
RUN git clone https://github.com/rvagg/rpi-newer-crosstools.git /opt/raspberrypi/rpi-newer-crosstools
COPY cc-selector.sh /opt/raspberrypi/cc-selector.sh
RUN chmod 755 /opt/raspberrypi/cc-selector.sh
RUN addgroup --gid {{ server_user_gid.stdout_lines[0] }} {{ server_user }} \
&& adduser --gid {{ server_user_gid.stdout_lines[0] }} --uid {{ server_user_uid.stdout_lines[0] }} --disabled-password --gecos {{ server_user }} {{ server_user }}
VOLUME /home/{{ server_user }}/ /home/{{ server_user }}/.ccache
USER {{ server_user }}:{{ server_user }}
ENV USER={{ server_user }} \
JOBS={{ server_jobs | default(ansible_processor_vcpus) }} \
SHELL=/bin/bash \
HOME=/home/{{ server_user }} \
PATH=/usr/lib/ccache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
NODE_COMMON_PIPE=/home/{{ server_user }}/test.pipe \
NODE_TEST_DIR=/home/{{ server_user }}/tmp \
OSTYPE=linux-gnu \
OSVARIANT=docker \
DESTCPU={{ arch }} \
ARCH={{ arch }} \
CCACHE_TEMPDIR=/home/{{ server_user }}/.ccache/{{ item.name }}
CMD cd /home/{{ server_user }} \
&& curl https://ci.nodejs.org/jnlpJars/agent.jar -O \
&& java -Xmx{{ server_ram|default('128m') }} \
-jar /home/{{ server_user }}/agent.jar \
-url {{ jenkins_url }} \
-name {{ item.name }} \
-secret {{ item.secret }}