Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/compute/cloud/hyperstack/image.tsx
1503 views
1
import SelectImage, {
2
ImageDescription,
3
ImageLinks,
4
} from "@cocalc/frontend/compute/select-image";
5
6
export default function Image(props) {
7
const { state = "deprovisioned" } = props;
8
return (
9
<div>
10
<div style={{ color: "#666", marginBottom: "5px" }}>
11
<b>Image</b>
12
</div>
13
{(state == "deprovisioned" || state == "off") && (
14
<div style={{ color: "#666", marginBottom: "5px" }}>
15
Select compute server image. You will be able to use sudo with no
16
password and can install anything into the Ubuntu 22.04 Linux image.
17
Clicking "advanced" may show additional less tested or older options.
18
</div>
19
)}
20
<SelectImage {...props} gpu={true} arch={"x86_64"} warnBigGb={4} />
21
<div style={{ color: "#666", marginTop: "5px" }}>
22
<ImageDescription configuration={props.configuration} />
23
<ImageLinks
24
image={props.configuration.image}
25
style={{ flexDirection: "row" }}
26
/>
27
{!(state == "deprovisioned" || state == "off") && (
28
<div style={{ color: "#666", marginTop: "5px" }}>
29
You can only edit the image when server is deprovisioned or off.
30
</div>
31
)}
32
</div>
33
</div>
34
);
35
}
36
37