Skip to content

Commit

Permalink
[chore] Build and publish the NodeJS E2E image (open-telemetry#2199)
Browse files Browse the repository at this point in the history
* Build and publish the NodeJS E2E image

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* Fix workflow

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

---------

Signed-off-by: Israel Blancas <iblancasa@gmail.com>
  • Loading branch information
iblancasa authored Oct 6, 2023
1 parent 1cfda50 commit 96e81a5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish-autoinstrumentation-e2e-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,8 @@ jobs:
with:
language: dotnet
platforms: linux/arm64,linux/amd64
nodejs:
uses: ./.github/workflows/reusable-publish-autoinstrumentation-e2e-images.yaml
with:
language: nodejs
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
5 changes: 5 additions & 0 deletions tests/instrumentation-e2e-apps/nodejs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM node:20-alpine3.17
RUN npm install express -g --verbose
COPY index.js .

ENTRYPOINT ["node", "index.js"]
11 changes: 11 additions & 0 deletions tests/instrumentation-e2e-apps/nodejs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const express = require('express')
const app = express()
const port = 3000

app.get('/', (req, res) => {
res.send('Hello World!')
})

app.listen(port, () => {
console.log("Hi")
})

0 comments on commit 96e81a5

Please sign in to comment.