Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions packer/cirun-runner.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ build {
script = "scripts/install-docker.sh"
}

provisioner "shell" {
script = "scripts/setup-runner.sh"
}

provisioner "shell" {
script = "scripts/install-nvidia-drivers.sh"
}
Expand Down
7 changes: 6 additions & 1 deletion packer/scripts/install-docker.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
#!/bin/bash
set -e

# Update package index
# Update package index and bring the base image up to date first.
# The Ubuntu 24.04 base AMI ships with older gnupg/libksba8/gpg-agent
# packages; installing gnupg below pulls newer versions that require an
# updated libksba8 (>= 1.6.3), which fails with "unmet dependencies"
# unless the base packages are upgraded beforehand.
sudo apt-get update
sudo apt-get upgrade -y

# Install packages to allow apt to use a repository over HTTPS
sudo apt-get install -y \
Expand Down
36 changes: 25 additions & 11 deletions packer/scripts/preinstall-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,37 @@ sudo apt-get update
sudo useradd -m -s /bin/bash runnerx
sudo usermod -aG docker runnerx

# Install essential tools from workflow analysis
# Install AWS CLI v2
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
rm -rf awscliv2.zip aws/

# Install essential tools for CI runner
sudo apt-get install -y \
jq \
hub \
xvfb \
curl \
wget \
unzip

# Remove conflicting packages first
sudo apt-get remove -y nodejs npm libnode-dev nodejs-doc || true
sudo apt-get autoremove -y

# Install Node.js 20 (version specified in workflow)
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs
unzip \
python3-pip \
python3-venv \
pipx \
uv \
git \
build-essential \
nodejs \
npm \
gh

# # Remove conflicting packages first
# sudo apt-get remove -y nodejs npm libnode-dev nodejs-doc || true
# sudo apt-get autoremove -y

# # Install Node.js 20 (version specified in workflow)
# curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
# sudo apt-get install -y nodejs

# Install miniconda for runnerx user (matching CI runner environment)
sudo -u runnerx wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /home/runnerx/miniconda.sh
Expand All @@ -38,7 +53,6 @@ echo 'export PATH="/home/runnerx/miniconda3/bin:$PATH"' | sudo tee -a /home/runn
# Install pipx for Python package management
sudo apt-get install -y python3-pip python3-venv pipx


# Create necessary directories
sudo mkdir -p /opt/runnerx
sudo chown ubuntu:ubuntu /opt/runnerx
Expand Down
24 changes: 0 additions & 24 deletions packer/scripts/setup-common-tools.sh

This file was deleted.

24 changes: 0 additions & 24 deletions packer/scripts/setup-runner.sh

This file was deleted.

Loading