forked from nodejs/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ansible: add rhel9_arm_cross containers
- Loading branch information
1 parent
164cd5b
commit 315f6f0
Showing
3 changed files
with
79 additions
and
7 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
67 changes: 67 additions & 0 deletions
67
ansible/roles/docker/templates/rhel9_arm_cross.Dockerfile.j2
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,67 @@ | ||
FROM registry.access.redhat.com/ubi9:latest | ||
|
||
ENV LC_ALL C | ||
ENV USER {{ server_user }} | ||
ENV JOBS {{ server_jobs | default(ansible_processor_vcpus) }} | ||
ENV SHELL /bin/bash | ||
ENV PATH /usr/lib64/ccache:/usr/lib/ccache:/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 }} | ||
|
||
# ccache is not in the default repositories so get it from EPEL 8. | ||
RUN dnf install --disableplugin=subscription-manager -y \ | ||
https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm \ | ||
&& dnf update --disableplugin=subscription-manager -y \ | ||
&& dnf install --disableplugin=subscription-manager -y \ | ||
ccache \ | ||
gcc-c++ \ | ||
gcc-toolset-12 \ | ||
gcc-toolset-12-libstdc++-devel \ | ||
gcc-toolset-12-libstdc++-devel.i686 \ | ||
git \ | ||
glibc-devel.i686 \ | ||
java-17-openjdk-headless \ | ||
libatomic.i686 \ | ||
libstdc++-devel \ | ||
libstdc++-devel.i686 \ | ||
make \ | ||
python3 \ | ||
python3-pip \ | ||
procps-ng \ | ||
xz \ | ||
&& dnf --disableplugin=subscription-manager clean all | ||
|
||
RUN groupadd -r -g {{ server_user_gid.stdout_lines[0] }} {{ server_user }} \ | ||
&& adduser -r -m -d /home/{{ server_user }}/ \ | ||
-g {{ server_user_gid.stdout_lines[0] }} \ | ||
-u {{ server_user_uid.stdout_lines[0] }} {{ server_user }} | ||
|
||
VOLUME /home/{{ server_user }}/ /home/{{ server_user }}/.ccache | ||
|
||
ENV PYTHON /usr/bin/python3 | ||
|
||
RUN pip3 install tap2junit=={{ tap2junit_version }} | ||
|
||
RUN git clone --depth=1 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 | ||
|
||
USER {{ server_user }}:{{ server_user }} | ||
|
||
ENV CCACHE_TEMPDIR /home/{{ server_user }}/.ccache/{{ item.name }} | ||
|
||
WORKDIR /home/{{ server_user }} | ||
|
||
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 }} |
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