feat(ubuntu-ci): preinstall node20
This commit is contained in:
parent
3fac1b8cc2
commit
20ee345bbf
2 changed files with 26 additions and 2 deletions
6
build-ci.sh
Executable file
6
build-ci.sh
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
(
|
||||||
|
cd images
|
||||||
|
podman build -t ubuntu-ci:dev -f ./Dockerfile.ubuntu-latest
|
||||||
|
) || exit 1
|
|
@ -1,11 +1,29 @@
|
||||||
FROM ubuntu:22.04
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
|
ENV NODE_VERSION="20.12.2"
|
||||||
|
|
||||||
RUN apt update && apt upgrade -y --autoremove
|
RUN apt update && apt upgrade -y --autoremove
|
||||||
|
|
||||||
RUN apt install -y \
|
RUN apt install -y \
|
||||||
jq \
|
jq \
|
||||||
podman \
|
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
|
COPY ./files/registries.conf /etc/containers/registries.conf
|
||||||
|
|
Loading…
Reference in a new issue