Skip to content

Commit

Permalink
download docker images from quay.io
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Martens <[email protected]>
  • Loading branch information
JanMa authored and naphelps committed May 22, 2024
1 parent 8283776 commit 02e0c9b
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions website/src/pages/downloads.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,22 +123,11 @@ const Docker = ({ version, name }) => {
const { options } = useOptions();
return (
<Tabs>
{version &&
Object(options)[version]["assets"][name] &&
Object(options)[version]["assets"][name]["docker"] &&
Object(options)[version]["assets"][name]["docker"].map(
(url) => (
<TabItem
value={AssetArchitecture(url)}
label={AssetArchitecture(url).toUpperCase()}
>
<CodeBlock language="shell">
{`curl -sL "${url}" -o openbao.tar;
unzip -p openbao.tar | docker load`}
</CodeBlock>
</TabItem>
),
)}
<TabItem value="amd64" label="AMD64">
<CodeBlock language="shell">
{`docker pull quay.io/openbao/openbao:${version.slice(1)}`}
</CodeBlock>
</TabItem>
</Tabs>
);
};
Expand Down

0 comments on commit 02e0c9b

Please sign in to comment.