diff --git a/CHANGELOG.md b/CHANGELOG.md index 54c9b00..352981f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ the major version is 0, a minor release may change configuration (each such chan ## [Unreleased] ### Added +- The `sqlite3` command-line shell in every image variant, for tests and scripts that drive a SQLite database from the shell. - `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`. diff --git a/README.md b/README.md index 9ca6dcc..255d2df 100644 --- a/README.md +++ b/README.md @@ -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:` | 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:` | the official `actions-runner` (Ubuntu 24.04) plus git, curl, jq, python3, build-essential, pkg-config, libssl-dev, sqlite3, shellcheck, gh; no `sudo`, no Docker | | `ghcr.io/farzai/github-runner-railway:pg-` | 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-` | the base image plus passwordless `sudo` for the runner user (opt-in, see below) | | `ghcr.io/farzai/github-runner-railway:php-` | the base image plus PHP 8.3, 8.4 and 8.5 (ondrej/php PPA) and Composer, and `use-php ` to pick one; for PHP projects, since `setup-php` cannot run without sudo | diff --git a/image/Dockerfile b/image/Dockerfile index 662bc55..2168fac 100644 --- a/image/Dockerfile +++ b/image/Dockerfile @@ -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 libssl-dev python3 python3-pip python3-venv \ + build-essential pkg-config libssl-dev sqlite3 python3 python3-pip python3-venv \ && rm -rf /var/lib/apt/lists/* # shellcheck, so actionlint checks run: scripts instead of skipping them silently. Pinned release, @@ -45,7 +45,7 @@ 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 sqlite3 shellcheck gh; do command -v "$t" >/dev/null || { echo "missing $t" >&2; exit 1; }; done \ && pkg-config --exists openssl COPY entrypoint.sh /entrypoint.sh