Skip to content

Commit

Permalink
Update docker
Browse files Browse the repository at this point in the history
  • Loading branch information
aminick committed Oct 5, 2021
1 parent 9e1a65c commit 9224730
Showing 1 changed file with 33 additions and 22 deletions.
55 changes: 33 additions & 22 deletions components/guides/flexfarmer/FlexfarmerDownloads.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,6 @@ const downloads = {
name: 'Solaris amd64',
bits: '64',
},
{
arch: 'docker',
link: 'https://hub.docker.com/r/flexpool/flexfarmer',
name: 'Docker Image',
bits: '',
},
],
};

Expand Down Expand Up @@ -229,20 +223,37 @@ export const FlexfarmerDownloads: React.FC<{
}
}, []);

return downloads[osSelection] ? (
<DownloadsList className="nostyled">
{downloads[osSelection].map((item) => {
return (
<FlexfarmerDownloadLink
os={osSelection}
osName={osList[osSelection].label}
info={item}
link={item.link.replace('{{version}}', version)}
version={version}
key={item.link}
/>
);
})}
</DownloadsList>
) : null;
return (
<>
{downloads[osSelection] ? (
<DownloadsList className="nostyled">
{downloads[osSelection].map((item) => {
return (
<FlexfarmerDownloadLink
os={osSelection}
osName={osList[osSelection].label}
info={item}
link={item.link.replace('{{version}}', version)}
version={version}
key={item.link}
/>
);
})}
</DownloadsList>
) : null}

{osSelection === 'others' && (
<>
Docker image is available at{' '}
<a
href="https://hub.docker.com/r/flexpool/flexfarmer"
target="__blank"
>
flexpool/flexfarmer
</a>
.
</>
)}
</>
);
};

0 comments on commit 9224730

Please sign in to comment.