@@ -21,9 +21,17 @@ const DOCKER_HUB_URL = 'https://hub.docker.com/u/entrius';
2121
2222const MONO = '"JetBrains Mono", monospace' ;
2323
24- /** The exact command miners run; kept in one place so docs can link here. */
24+ /** The exact commands miners run — the runtime and, beside it, the attest container that answers the validators'
25+ * hardware challenge on every GPU of the box. Kept in one place so docs can link here. */
2526export const buildSparkinferRunCommand = ( release : ServingRelease ) : string =>
26- `docker run -d --name sparkinfer --gpus all -p 8080:8080 -v sparkmodels:/opt/sparkinfer/models -e MODEL_SHA256=${ release . modelSha256 } -e SPARKINFER_DETERMINISTIC=1 ${ release . image } ` ;
27+ [
28+ `docker run -d --name sparkinfer --gpus all --restart unless-stopped -p 127.0.0.1:8080:8080 -v sparkmodels:/opt/sparkinfer/models -e MODEL_SHA256=${ release . modelSha256 } -e SPARKINFER_DETERMINISTIC=1 ${ release . image } ` ,
29+ release . attestImage
30+ ? `docker run -d --name gt-attest --gpus all --restart unless-stopped -p 127.0.0.1:8081:8081 ${ release . attestImage } `
31+ : null ,
32+ ]
33+ . filter ( Boolean )
34+ . join ( '\n' ) ;
2735
2836const CopyButton : React . FC < { text : string ; label : string } > = ( {
2937 text,
@@ -162,6 +170,11 @@ export const ComputeReleaseCard: React.FC<{ release: ServingRelease }> = ({
162170 < Field label = "Model file" value = { release . modelFile } />
163171 < Field label = "Image" value = { release . image } copyable />
164172 </ Box >
173+ { release . attestImage && (
174+ < Box sx = { { mb : 2 } } >
175+ < Field label = "Attest image" value = { release . attestImage } copyable />
176+ </ Box >
177+ ) }
165178 < Box sx = { { mb : 2 } } >
166179 < Field label = "Model SHA-256" value = { release . modelSha256 } copyable />
167180 </ Box >
@@ -201,7 +214,7 @@ export const ComputeReleaseCard: React.FC<{ release: ServingRelease }> = ({
201214 >
202215 < code > { command } </ code >
203216 </ Box >
204- < CopyButton text = { command } label = "docker command " />
217+ < CopyButton text = { command } label = "docker commands " />
205218 </ Box >
206219
207220 < Stack direction = "row" flexWrap = "wrap" gap = { 2 } sx = { { mt : 1.5 } } >
0 commit comments