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: 2 additions & 2 deletions .github/docker/Dockerfile.glibc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:noble AS build
FROM redhat/ubi8 AS build

ARG NODE_VERSION=20.19.0
# Possible values: s390x, arm64, x64
Expand All @@ -10,7 +10,7 @@ ENV PATH=$PATH:/nodejs/bin
WORKDIR /mongodb-client-encryption
COPY . .

RUN apt-get -qq update && apt-get -qq install -y python3 build-essential git && ldd --version
RUN yum install -y python39 git make gcc-c++

RUN npm run install:libmongocrypt

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Only suitable for local development:
Below are the platforms that are available as prebuilds on each github release.
`prebuild-install` downloads these automatically depending on the platform you are running npm install on.

- Linux GLIBC 2.23 or later
- Linux GLIBC 2.28 or later
- s390x
- arm64
- x64
Expand Down
21 changes: 21 additions & 0 deletions test/unit/glibc.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { expect } from 'chai';
import { execSync } from 'child_process';

describe('glibc requirements', function () {
let lddOutput: string;
beforeEach(function () {
if (process.platform !== 'linux') return this.skip();

try {
lddOutput = execSync('ldd --version', { encoding: 'utf8' });
} catch {
this.skip();
}

return;
});

it('glibc is 2.28', function () {
expect(lddOutput).to.contain('2.28');
});
});