Skip to content

Commit

Permalink
test(tools): support cgroup v2 only systems
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Sep 9, 2023
1 parent 72c4286 commit df88b74
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/tools/env/cron/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM centos:7
FROM almalinux:8
MAINTAINER David Worms

# Install Node.js
Expand Down
9 changes: 6 additions & 3 deletions packages/tools/env/dconf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:trusty
FROM ubuntu:22.04
MAINTAINER David Worms

LABEL project=nikita \
Expand All @@ -14,11 +14,14 @@ RUN \

# Install SSH
RUN apt-get install -y openssh-server \
&& ssh-keygen -t rsa -f ~/.ssh/id_rsa -N '' \
&& cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys \
&& ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N '' \
&& cat ~/.ssh/id_ed25519.pub > ~/.ssh/authorized_keys \
&& ssh-keygen -A \
&& mkdir -p /run/sshd

# Install dbus-x11 required by dbus-launch in entrypoint.sh
RUN apt install -y dbus-x11

# Install local dependencies
RUN apt-get install -y dconf-cli gnome-terminal
COPY dbus.conf /etc/dbus-1/session.d/dbus.conf
Expand Down
2 changes: 1 addition & 1 deletion packages/tools/env/dconf/test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ module.exports =
env: DBUS_SESSION_BUS_ADDRESS:'unix:path=/tmp/dbus.sock'
ssh:
host: '127.0.0.1', username: process.env.USER,
private_key_path: '~/.ssh/id_rsa'
private_key_path: '~/.ssh/id_ed25519'
]
2 changes: 1 addition & 1 deletion packages/tools/env/npm/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ runner
if command -v node ; then exit 42; fi
curl -sS -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
. ~/.bashrc
nvm install 16
nvm install 20
'''
trap: true
code: [0, 42]
Expand Down
8 changes: 4 additions & 4 deletions packages/tools/env/repo-centos7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM centos:7.9.2009
FROM almalinux:8
MAINTAINER David Worms

RUN \
Expand Down Expand Up @@ -26,10 +26,10 @@ RUN useradd nikita -d /home/nikita && \
USER nikita

# Install Node.js
# Note, CentOS 7.9.2009 incompatible with Node.js >= 18
ENV NODE_VERSION stable
RUN \
curl -L https://git.io/n-install | bash -s -- -y 16.19
ENV PATH /home/nikita/n/bin:$PATH
curl -L https://git.io/n-install | bash -s -- -y && \
. ~/.bashrc && n $NODE_VERSION

RUN \
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N '' && \
Expand Down

0 comments on commit df88b74

Please sign in to comment.