Skip to content

Commit

Permalink
[dash0] frontend: add k8s resource detector
Browse files Browse the repository at this point in the history
  • Loading branch information
basti1302 committed Mar 13, 2024
1 parent 87bf8b4 commit 2947d09
Show file tree
Hide file tree
Showing 8 changed files with 7,577 additions and 4,251 deletions.
1 change: 1 addition & 0 deletions src/frontend/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
1 change: 1 addition & 0 deletions src/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ RUN adduser -S nextjs -u 1001

COPY --from=builder /app/next.config.js ./
COPY --from=builder /app/utils/telemetry/Instrumentation.js ./
COPY --from=builder /app/utils/telemetry/KubernetesResourceDetector.ts ./
COPY --from=builder /app/public ./public
COPY --from=builder /app/package.json ./package.json
COPY --from=deps /app/node_modules ./node_modules
Expand Down
16 changes: 16 additions & 0 deletions src/frontend/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/

import type { Config } from 'jest';

const config: Config = {
preset: 'ts-jest',
testEnvironment: 'node',
clearMocks: true,
coverageProvider: 'v8',
modulePathIgnorePatterns: ['.next'],
};

export default config;
Loading

0 comments on commit 2947d09

Please sign in to comment.