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
12 changes: 12 additions & 0 deletions config/repo-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ repos:
bucket: repo.mongodb.org
architectures:
- x86_64
- ppc64le
- s390x
repos:
- yum/redhat/7/mongodb-org
- yum/redhat/7Server/mongodb-org
Expand All @@ -147,6 +149,8 @@ repos:
architectures:
- x86_64
- aarch64
- ppc64le
- s390x
repos:
- yum/redhat/8/mongodb-org
- yum/redhat/8Server/mongodb-org
Expand All @@ -158,6 +162,8 @@ repos:
architectures:
- x86_64
- aarch64
- ppc64le
- s390x
repos:
- yum/redhat/9/mongodb-org
- yum/redhat/9Server/mongodb-org
Expand Down Expand Up @@ -291,6 +297,8 @@ repos:
bucket: repo.mongodb.com
architectures:
- x86_64
- ppc64le
- s390x
repos:
- yum/redhat/7/mongodb-enterprise
- yum/redhat/7Server/mongodb-enterprise
Expand All @@ -302,6 +310,8 @@ repos:
architectures:
- x86_64
- aarch64
- ppc64le
- s390x
repos:
- yum/redhat/8/mongodb-enterprise
- yum/redhat/8Server/mongodb-enterprise
Expand All @@ -313,6 +323,8 @@ repos:
architectures:
- x86_64
- aarch64
- ppc64le
- s390x
repos:
- yum/redhat/9/mongodb-enterprise
- yum/redhat/9Server/mongodb-enterprise
Expand Down
36 changes: 36 additions & 0 deletions packages/build/src/barque.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,42 @@ describe('Barque', () => {
'https://repo.mongodb.org/yum/amazon/2022/mongodb-org/6.0/aarch64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm',
'https://repo.mongodb.com/yum/amazon/2022/mongodb-enterprise/6.0/aarch64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm',
]
},
{
variant: 'rpm-s390x',
url: 'https://s3.amazonaws.com/mciuploads/mongosh/5ed7ee5d8683818eb28d9d3b5c65837cde4a08f5/mongodb-mongosh-0.1.0.el7.s390x.rpm',
publishedUrls: [
'https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.4/s390x/RPMS/mongodb-mongosh-0.1.0.el7.s390x.rpm',
'https://repo.mongodb.com/yum/redhat/7/mongodb-enterprise/4.4/s390x/RPMS/mongodb-mongosh-0.1.0.el7.s390x.rpm',
'https://repo.mongodb.org/yum/redhat/7/mongodb-org/5.0/s390x/RPMS/mongodb-mongosh-0.1.0.el7.s390x.rpm',
'https://repo.mongodb.com/yum/redhat/7/mongodb-enterprise/5.0/s390x/RPMS/mongodb-mongosh-0.1.0.el7.s390x.rpm',
'https://repo.mongodb.org/yum/redhat/7/mongodb-org/6.0/s390x/RPMS/mongodb-mongosh-0.1.0.el7.s390x.rpm',
'https://repo.mongodb.com/yum/redhat/7/mongodb-enterprise/6.0/s390x/RPMS/mongodb-mongosh-0.1.0.el7.s390x.rpm',
'https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.4/s390x/RPMS/mongodb-mongosh-0.1.0.el7.s390x.rpm',
'https://repo.mongodb.com/yum/redhat/8/mongodb-enterprise/4.4/s390x/RPMS/mongodb-mongosh-0.1.0.el7.s390x.rpm',
'https://repo.mongodb.org/yum/redhat/8/mongodb-org/5.0/s390x/RPMS/mongodb-mongosh-0.1.0.el7.s390x.rpm',
'https://repo.mongodb.com/yum/redhat/8/mongodb-enterprise/5.0/s390x/RPMS/mongodb-mongosh-0.1.0.el7.s390x.rpm',
'https://repo.mongodb.org/yum/redhat/8/mongodb-org/6.0/s390x/RPMS/mongodb-mongosh-0.1.0.el7.s390x.rpm',
'https://repo.mongodb.com/yum/redhat/8/mongodb-enterprise/6.0/s390x/RPMS/mongodb-mongosh-0.1.0.el7.s390x.rpm',
]
},
{
variant: 'rpm-ppc64le',
url: 'https://s3.amazonaws.com/mciuploads/mongosh/5ed7ee5d8683818eb28d9d3b5c65837cde4a08f5/mongodb-mongosh-0.1.0.el7.ppc64le.rpm',
publishedUrls: [
'https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.4/ppc64le/RPMS/mongodb-mongosh-0.1.0.el7.ppc64le.rpm',
'https://repo.mongodb.com/yum/redhat/7/mongodb-enterprise/4.4/ppc64le/RPMS/mongodb-mongosh-0.1.0.el7.ppc64le.rpm',
'https://repo.mongodb.org/yum/redhat/7/mongodb-org/5.0/ppc64le/RPMS/mongodb-mongosh-0.1.0.el7.ppc64le.rpm',
'https://repo.mongodb.com/yum/redhat/7/mongodb-enterprise/5.0/ppc64le/RPMS/mongodb-mongosh-0.1.0.el7.ppc64le.rpm',
'https://repo.mongodb.org/yum/redhat/7/mongodb-org/6.0/ppc64le/RPMS/mongodb-mongosh-0.1.0.el7.ppc64le.rpm',
'https://repo.mongodb.com/yum/redhat/7/mongodb-enterprise/6.0/ppc64le/RPMS/mongodb-mongosh-0.1.0.el7.ppc64le.rpm',
'https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.4/ppc64le/RPMS/mongodb-mongosh-0.1.0.el7.ppc64le.rpm',
'https://repo.mongodb.com/yum/redhat/8/mongodb-enterprise/4.4/ppc64le/RPMS/mongodb-mongosh-0.1.0.el7.ppc64le.rpm',
'https://repo.mongodb.org/yum/redhat/8/mongodb-org/5.0/ppc64le/RPMS/mongodb-mongosh-0.1.0.el7.ppc64le.rpm',
'https://repo.mongodb.com/yum/redhat/8/mongodb-enterprise/5.0/ppc64le/RPMS/mongodb-mongosh-0.1.0.el7.ppc64le.rpm',
'https://repo.mongodb.org/yum/redhat/8/mongodb-org/6.0/ppc64le/RPMS/mongodb-mongosh-0.1.0.el7.ppc64le.rpm',
'https://repo.mongodb.com/yum/redhat/8/mongodb-enterprise/6.0/ppc64le/RPMS/mongodb-mongosh-0.1.0.el7.ppc64le.rpm',
]
}
] as const).forEach(({ variant, url, publishedUrls }) => {
it(`publishes ${variant} packages`, async() => {
Expand Down
6 changes: 6 additions & 0 deletions packages/build/src/barque.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ export function getReposAndArch(packageVariant: PackageVariant): { ppas: PPARepo
arch: getRPMArchName(getArch(packageVariant))
};
}
if (getArch(packageVariant) === 'ppc64le' || getArch(packageVariant) === 's390x') {
return {
ppas: ['rhel70', 'rhel80'],
arch: getRPMArchName(getArch(packageVariant))
};
}
return { ppas: [], arch: '' };
default:
throw new Error(`Unknown package variant ${packageVariant}`);
Expand Down