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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ the major version is 0, a minor release may change configuration (each such chan
## [Unreleased]

### Added
- `libssl-dev` in every image variant, so Rust crates that link OpenSSL (`openssl-sys`) build on the pool; the build checks that `pkg-config` finds it.
- The GitHub CLI (`gh` 2.102.0, pinned by version and sha256) in every image variant, so a job can open or comment on issues without a GitHub-hosted runner. Nothing is logged in: a job passes `GH_TOKEN`.

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ limits. [docs/deploy.md](docs/deploy.md) has the full guide, rollout and rollbac

| Image | Contents |
| --- | --- |
| `ghcr.io/farzai/github-runner-railway:<version>` | the official `actions-runner` (Ubuntu 24.04) plus git, curl, jq, python3, build-essential, shellcheck, gh; no `sudo`, no Docker |
| `ghcr.io/farzai/github-runner-railway:<version>` | the official `actions-runner` (Ubuntu 24.04) plus git, curl, jq, python3, build-essential, pkg-config, libssl-dev, shellcheck, gh; no `sudo`, no Docker |
| `ghcr.io/farzai/github-runner-railway:pg-<version>` | the above plus PostgreSQL 18, Playwright's Chromium/WebKit system libraries and browsers (see `image/Dockerfile` for the pinned versions), and `ci-postgres` |
| `ghcr.io/farzai/github-runner-railway:sudo-<version>` | the base image plus passwordless `sudo` for the runner user (opt-in, see below) |
| `ghcr.io/farzai/github-runner-railway:php-<version>` | the base image plus PHP 8.3, 8.4 and 8.5 (ondrej/php PPA) and Composer, and `use-php <version>` to pick one; for PHP projects, since `setup-php` cannot run without sudo |
Expand Down
5 changes: 3 additions & 2 deletions image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ USER root
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates curl wget git git-lfs jq unzip zip xz-utils tar gzip openssh-client \
build-essential pkg-config python3 python3-pip python3-venv \
build-essential pkg-config libssl-dev python3 python3-pip python3-venv \
&& rm -rf /var/lib/apt/lists/*

# shellcheck, so actionlint checks run: scripts instead of skipping them silently. Pinned release,
Expand Down Expand Up @@ -45,7 +45,8 @@ RUN (deluser runner sudo || true) \
# The build fails here, not at the first job, if any of that did not take.
RUN ! id -nG runner | tr ' ' '\n' | grep -qxE 'sudo|docker|root' \
&& ! grep -rqs NOPASSWD /etc/sudoers /etc/sudoers.d \
&& for t in git curl jq unzip python3 gcc make shellcheck gh; do command -v "$t" >/dev/null || { echo "missing $t" >&2; exit 1; }; done
&& for t in git curl jq unzip python3 gcc make shellcheck gh; do command -v "$t" >/dev/null || { echo "missing $t" >&2; exit 1; }; done \
&& pkg-config --exists openssl

COPY entrypoint.sh /entrypoint.sh
RUN chmod 0755 /entrypoint.sh
Expand Down
Loading