MCPcopy Index your code
hub / github.com/devcontainers/cli / runPostStartCommand

Function runPostStartCommand

src/spec-common/injectHeadless.ts:433–437  ·  view source on GitHub ↗
(params: ResolverParameters, lifecycleCommandOriginMap: LifecycleHooksInstallMap, containerProperties: ContainerProperties, remoteEnv: Promise<Record<string, string>>, secrets: Promise<Record<string, string>>)

Source from the content-addressed store, hash-verified

431}
432
433async function runPostStartCommand(params: ResolverParameters, lifecycleCommandOriginMap: LifecycleHooksInstallMap, containerProperties: ContainerProperties, remoteEnv: Promise<Record<string, string>>, secrets: Promise<Record<string, string>>) {
434 const markerFile = path.posix.join(containerProperties.userDataFolder, '.postStartCommandMarker');
435 const doRun = !!containerProperties.startedAt && await updateMarkerFile(containerProperties.shellServer, markerFile, containerProperties.startedAt);
436 await runLifecycleCommands(params, lifecycleCommandOriginMap, containerProperties, 'postStartCommand', remoteEnv, secrets, doRun);
437}
438
439async function updateMarkerFile(shellServer: ShellServer, location: string, content: string) {
440 try {

Callers 1

runLifecycleHooksFunction · 0.85

Calls 2

updateMarkerFileFunction · 0.85
runLifecycleCommandsFunction · 0.85

Tested by

no test coverage detected