-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes: #3988
- Loading branch information
Showing
2 changed files
with
124 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
FROM alpine:3.20 | ||
|
||
ENV LC_ALL C | ||
ENV USER {{ server_user }} | ||
ENV JOBS {{ server_jobs | default(ansible_processor_vcpus) }} | ||
ENV SHELL /bin/bash | ||
ENV HOME /home/{{ server_user }} | ||
ENV PATH /usr/local/venv/bin:/usr/lib/ccache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | ||
ENV NODE_COMMON_PIPE /home/{{ server_user }}/test.pipe | ||
ENV NODE_TEST_DIR /home/{{ server_user }}/tmp | ||
ENV OSTYPE linux-gnu | ||
ENV OSVARIANT docker | ||
ENV DESTCPU {{ arch }} | ||
ENV ARCH {{ arch }} | ||
|
||
RUN apk add --no-cache --upgrade apk-tools | ||
|
||
RUN apk add --no-cache libstdc++ | ||
|
||
RUN apk add --no-cache --virtual .build-deps \ | ||
shadow \ | ||
binutils-gold \ | ||
curl \ | ||
g++ \ | ||
gcc \ | ||
gnupg \ | ||
libgcc \ | ||
linux-headers \ | ||
make \ | ||
python3 \ | ||
tar \ | ||
ccache \ | ||
openjdk21 \ | ||
git \ | ||
procps \ | ||
openssh-client-default \ | ||
py3-pip \ | ||
bash \ | ||
automake \ | ||
libtool \ | ||
autoconf | ||
|
||
RUN python3 -m venv /usr/local/venv | ||
RUN pip3 install tap2junit=={{ tap2junit_version }} | ||
|
||
RUN addgroup -g {{ server_user_gid.stdout_lines[0] }} {{ server_user }} | ||
|
||
RUN adduser -G {{ server_user }} -D -u {{ server_user_uid.stdout_lines[0] }} {{ server_user }} | ||
|
||
VOLUME /home/{{ server_user }}/ /home/{{ server_user }}/.ccache | ||
|
||
USER iojs:iojs | ||
|
||
ENV CCACHE_TEMPDIR /home/iojs/.ccache/{{ item.name }} | ||
|
||
CMD cd /home/iojs \ | ||
&& 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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
FROM alpine:3.21 | ||
|
||
ENV LC_ALL C | ||
ENV USER {{ server_user }} | ||
ENV JOBS {{ server_jobs | default(ansible_processor_vcpus) }} | ||
ENV SHELL /bin/bash | ||
ENV HOME /home/{{ server_user }} | ||
ENV PATH /usr/local/venv/bin:/usr/lib/ccache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | ||
ENV NODE_COMMON_PIPE /home/{{ server_user }}/test.pipe | ||
ENV NODE_TEST_DIR /home/{{ server_user }}/tmp | ||
ENV OSTYPE linux-gnu | ||
ENV OSVARIANT docker | ||
ENV DESTCPU {{ arch }} | ||
ENV ARCH {{ arch }} | ||
|
||
RUN apk add --no-cache --upgrade apk-tools | ||
|
||
RUN apk add --no-cache libstdc++ | ||
|
||
RUN apk add --no-cache --virtual .build-deps \ | ||
shadow \ | ||
binutils-gold \ | ||
curl \ | ||
g++ \ | ||
gcc \ | ||
gnupg \ | ||
libgcc \ | ||
linux-headers \ | ||
make \ | ||
python3 \ | ||
tar \ | ||
ccache \ | ||
openjdk21 \ | ||
git \ | ||
procps \ | ||
openssh-client-default \ | ||
py3-pip \ | ||
bash \ | ||
automake \ | ||
libtool \ | ||
autoconf | ||
|
||
RUN python3 -m venv /usr/local/venv | ||
RUN pip3 install tap2junit=={{ tap2junit_version }} | ||
|
||
RUN addgroup -g {{ server_user_gid.stdout_lines[0] }} {{ server_user }} | ||
|
||
RUN adduser -G {{ server_user }} -D -u {{ server_user_uid.stdout_lines[0] }} {{ server_user }} | ||
|
||
VOLUME /home/{{ server_user }}/ /home/{{ server_user }}/.ccache | ||
|
||
USER iojs:iojs | ||
|
||
ENV CCACHE_TEMPDIR /home/iojs/.ccache/{{ item.name }} | ||
|
||
CMD cd /home/iojs \ | ||
&& 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 }} |