Skip to content

Commit e3f7a7b

Browse files
authored
fix(docker): copy telemetry bootstrap into image (#149)
1 parent 39e1297 commit e3f7a7b

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ RUN npm ci --omit=dev && npm cache clean --force
99

1010
COPY --chown=node:node mesh.config.ts ./
1111
COPY --chown=node:node gateway.config.ts ./
12+
COPY --chown=node:node telemetry.ts ./
1213
COPY --chown=node:node swagger-spec.json ./
1314

1415
USER node

tests/openapi.spec.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,13 @@ test('gateway config and telemetry bootstrap wiring are configured', async () =>
101101
)
102102
}
103103
})
104+
105+
test('Docker image copies telemetry bootstrap file', async () => {
106+
const dockerfile = await fs.readFile(path.join(projectRoot, 'Dockerfile'), 'utf-8')
107+
108+
assert.match(
109+
dockerfile,
110+
/COPY --chown=node:node telemetry\.ts \.\//,
111+
'Expected Dockerfile to copy telemetry.ts into the runtime image',
112+
)
113+
})

0 commit comments

Comments
 (0)