Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker image for Qase reporter using alpine image #2934

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
2023-06-05 This repository has been archived

### Newman v5 has been released. Check the [migration guide](MIGRATION.md#migrating-from-v4-to-v5) and [changelog](https://github.com/postmanlabs/newman/blob/v5.0.0/CHANGELOG.yaml#L1) for more details.

<a href="https://www.postman.com/"><img src="https://assets.getpostman.com/common-share/postman-logo-horizontal-320x132.png" /></a><br />
Expand Down
3 changes: 3 additions & 0 deletions docker/images/qase-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM postman/newman:alpine

RUN npm install --global newman-reporter-qase
30 changes: 30 additions & 0 deletions docker/images/qase-alpine/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# newman:qase-alpine

This image runs newman on node v16 on Alpine with a Qase reporter installed.

Build the image:

```terminal
docker build -t postman/newman:qase-alpine --build-arg NEWMAN_VERSION="full semver version" .
```

Or get it from [Docker Hub](https://registry.hub.docker.com/u/postman/newman/):

```terminal
docker pull postman/newman:qase-alpine
```

Then run it:

```terminal
docker --volume="/home/postman/collections:/etc/newman" -t postman/newman:qase-alpine run JSONBlobCoreAPI.json.postman_collection -r qase \ # Enable Qase logger
--reporter-qase-logging \ # Use reporter logger (like debug)
--reporter-qase-projectCode PRJCODE \ # Specify Project Code
--reporter-qase-apiToken <api token> \ # Specify API token
--reporter-qase-runId 34 \ # Specify Run ID using CLI parameters
--reporter-qase-runName "..." \ # Specify Run name using CLI parameters
--reporter-qase-runDescription "..." \ # Specify Run description using CLI parameters
-x # WA for issue https://github.com/postmanlabs/newman/issues/2148#issuecomment-665229759
```

Visit the [GitHub](https://github.com/qase-tms/qase-javascript/tree/master/qase-newman) repository of newman-reporter-qase for full details on how to use this reporter.