feat(ubuntu-ci): preinstall node20

This commit is contained in:
Marc 2024-04-13 20:22:24 -04:00
parent 3fac1b8cc2
commit 20ee345bbf
Signed by: marc
GPG key ID: 048E042F22B5DC79
2 changed files with 26 additions and 2 deletions

6
build-ci.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
(
cd images
podman build -t ubuntu-ci:dev -f ./Dockerfile.ubuntu-latest
) || exit 1

View file

@ -1,11 +1,29 @@
FROM ubuntu:22.04
ENV NODE_VERSION="20.12.2"
RUN apt update && apt upgrade -y --autoremove
RUN apt install -y \
jq \
podman \
nodejs \
git
git \
xz-utils \
curl \
ca-certificates \
--no-install-recommends
# Node needs to be installed to ensure that actions can run in the
# runner.
WORKDIR tmp
RUN curl https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz --output /tmp/node-v$NODE_VERSION-linux-x64.tar.xz && \
tar -xf /tmp/node-v$NODE_VERSION-linux-x64.tar.xz && \
cp -r /tmp/node-v$NODE_VERSION-linux-x64/bin/* /bin/ && \
cp -r /tmp/node-v$NODE_VERSION-linux-x64/lib/* /lib/ && \
rm -rf /tmp/node-*
WORKDIR /
COPY ./files/registries.conf /etc/containers/registries.conf