Skip to content

Commit

Permalink
feat(MongoBinaryDownloadUrl::getRhelVersionString): add support for a…
Browse files Browse the repository at this point in the history
…arch64
  • Loading branch information
hasezoey committed Jul 24, 2022
1 parent 5f0c3f5 commit 62d96e6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docs/guides/supported-systems.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ There are currently no newer mongodb builds that support the newer provided open
(uses mongodb's `rhel` release)<br/>
Lowest supported Distribution version is `5`<br/>
Highest version is `8`<br/>
Default version is `70`
Default version is `70`<br/>
Architectures Supported: `x86_64`, `arm64`(`aarch64`)

:::note
`arm64`/`aarch64` support is only for Rhel 8(.2)
:::

### Amazon

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,22 @@ export class MongoBinaryDownloadUrl implements MongoBinaryDownloadUrlOpts {
const { release } = os;

if (release) {
if (/^8/.test(release)) {
if (this.arch === 'aarch64') {
if (!/^8/.test(release)) {
throw new KnownVersionIncompatibilityError(
`Rhel ${release}`,
this.version,
'>=4.4.2',
'ARM64(aarch64) support for rhel is only for rhel82 or higher'
);
}
if (semver.satisfies(this.version, '<4.4.2')) {
throw new KnownVersionIncompatibilityError(`Rhel ${release}`, this.version, '>=4.4.2');
}

// rhel aarch64 support is only for rhel 8 and only for 82
name += '82';
} else if (/^8/.test(release)) {
name += '80';
} else if (/^7/.test(release)) {
name += '70';
Expand Down

0 comments on commit 62d96e6

Please sign in to comment.