MCPcopy
hub / github.com/subquery/subql / loadDockerComposeFile

Function loadDockerComposeFile

packages/cli/src/controller/add-chain-controller.ts:143–148  ·  view source on GitHub ↗
(dockerComposePath: string)

Source from the content-addressed store, hash-verified

141}
142
143export function loadDockerComposeFile(dockerComposePath: string): Document | undefined {
144 if (fs.existsSync(dockerComposePath)) {
145 const content = fs.readFileSync(dockerComposePath, 'utf8');
146 return parseDocument(content);
147 }
148}
149
150function getSubqlNodeService(dockerCompose: Document): DockerComposeService | undefined {
151 const services = dockerCompose.get('services');

Callers 1

updateDockerComposeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected