Skip to content

Commit 8082b84

Browse files
committed
ci: update tests
1 parent 21da6d6 commit 8082b84

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

examples/hello-node-express-ts/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@ EXPOSE 3000
1515
# Enable corepack for yarn v4 support
1616
RUN corepack enable
1717

18-
# symlink hyperdx sdk dependency
19-
RUN cd ./examples/hello-node-express-ts/ && yarn run setup && yarn run build
18+
# Install root dependencies first (required for yarn v4 workspaces)
19+
RUN yarn install
20+
21+
# Build only the required package
22+
RUN yarn workspace @hyperdx/node-opentelemetry run build
23+
24+
# Setup example app dependencies and build
25+
RUN cd ./packages/node-opentelemetry && yarn link && cd ../../examples/hello-node-express-ts && yarn install && yarn link @hyperdx/node-opentelemetry && yarn run build
2026

2127
# run example express app
2228
CMD [ "node", "-r", "./examples/hello-node-express-ts/dist/instrumentation.js", "./examples/hello-node-express-ts/dist/index.js" ]

examples/hello-node-express/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@ EXPOSE 3000
1515
# Enable corepack for yarn v4 support
1616
RUN corepack enable
1717

18-
# symlink hyperdx sdk dependency
19-
RUN cd ./examples/hello-node-express/ && yarn run setup
18+
# Install root dependencies first (required for yarn v4 workspaces)
19+
RUN yarn install
20+
21+
# Build only the required package
22+
RUN yarn workspace @hyperdx/node-opentelemetry run build
23+
24+
# Setup example app dependencies
25+
RUN cd ./packages/node-opentelemetry && yarn link && cd ../../examples/hello-node-express && yarn install && yarn link @hyperdx/node-opentelemetry
2026

2127
# run example express app
2228
CMD [ "node", "./examples/hello-node-express/index.js" ]

examples/hello-node/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,14 @@ EXPOSE 3000
1616
# Enable corepack for yarn v4 support
1717
RUN corepack enable
1818

19-
# symlink hyperdx sdk dependency
20-
RUN cd ./examples/hello-node/ && yarn run setup
19+
# Install root dependencies first (required for yarn v4 workspaces)
20+
RUN yarn install
21+
22+
# Build only the required package
23+
RUN yarn workspace @hyperdx/node-opentelemetry run build
24+
25+
# Setup example app dependencies
26+
RUN cd ./packages/node-opentelemetry && yarn link && cd ../../examples/hello-node && yarn install && yarn link @hyperdx/node-opentelemetry
2127

2228
# run example script from root package.json
2329
CMD [ "yarn", "run", "example-node" ]

0 commit comments

Comments
 (0)