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

Function getDockerContextPath

src/spec-node/utils.ts:487–493  ·  view source on GitHub ↗
(cliHost: { platform: NodeJS.Platform }, config: DevContainerFromDockerfileConfig)

Source from the content-addressed store, hash-verified

485}
486
487export function getDockerContextPath(cliHost: { platform: NodeJS.Platform }, config: DevContainerFromDockerfileConfig) {
488 const context = 'dockerFile' in config ? config.context : config.build.context;
489 if (context) {
490 return getConfigFilePath(cliHost, config, context);
491 }
492 return parentURI(getDockerfilePath(cliHost, config));
493}
494
495export async function createContainerProperties(params: DockerResolverParameters, containerId: string, remoteWorkspaceFolder: string | undefined, remoteUser: string | undefined, rootShellServer?: ShellServer) {
496 const { common } = params;

Callers 1

buildAndExtendImageFunction · 0.90

Calls 3

getConfigFilePathFunction · 0.90
parentURIFunction · 0.90
getDockerfilePathFunction · 0.90

Tested by

no test coverage detected