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

Function runPostCreateCommand

src/spec-common/injectHeadless.ts:427–431  ·  view source on GitHub ↗
(params: ResolverParameters, lifecycleCommandOriginMap: LifecycleHooksInstallMap, containerProperties: ContainerProperties, postCommandName: 'onCreateCommand' | 'updateContentCommand' | 'postCreateCommand', remoteEnv: Promise<Record<string, string>>, secrets: Promise<Record<string, string>>, rerun: boolean)

Source from the content-addressed store, hash-verified

425}
426
427async function runPostCreateCommand(params: ResolverParameters, lifecycleCommandOriginMap: LifecycleHooksInstallMap, containerProperties: ContainerProperties, postCommandName: 'onCreateCommand' | 'updateContentCommand' | 'postCreateCommand', remoteEnv: Promise<Record<string, string>>, secrets: Promise<Record<string, string>>, rerun: boolean) {
428 const markerFile = path.posix.join(containerProperties.userDataFolder, `.${postCommandName}Marker`);
429 const doRun = !!containerProperties.createdAt && await updateMarkerFile(containerProperties.shellServer, markerFile, containerProperties.createdAt) || rerun;
430 await runLifecycleCommands(params, lifecycleCommandOriginMap, containerProperties, postCommandName, remoteEnv, secrets, doRun);
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');

Callers 1

runLifecycleHooksFunction · 0.85

Calls 2

updateMarkerFileFunction · 0.85
runLifecycleCommandsFunction · 0.85

Tested by

no test coverage detected