hurl/contrib/docker/dockerhub_readme.md

38 lines
1.3 KiB
Markdown
Raw Normal View History

2023-01-26 12:26:36 +03:00
# Container image has moved to github
Since hurl 2.0.0, docker hub is no more supported, please use https://github.com/Orange-OpenSource/hurl/pkgs/container/hurl :)
### Quick references
2021-12-15 16:22:29 +03:00
- **Maintained by**: Filipe PINTO, Fabrice REIX (Orange-OpenSource/hurl maintainers).
- **Home**: https://hurl.dev
- **Where to get help**: https://github.com/Orange-OpenSource/hurl/issues
2023-01-26 12:26:36 +03:00
### What is Hurl ?
2021-12-15 16:22:29 +03:00
![logo](https://raw.githubusercontent.com/Orange-OpenSource/hurl/master/art/logo-mini-light.svg)
Hurl is a command line tool that runs HTTP requests defined in a simple plain text format.
It can perform requests, capture values and evaluate queries on headers and body response. Hurl is very versatile: it can be used for both fetching data and testing HTTP sessions.
2023-01-26 12:26:36 +03:00
### How to use this image
2021-12-15 16:22:29 +03:00
Get Hurl version:
```
2023-01-26 12:26:36 +03:00
docker run --rm ghcr.io/orange-opensource/hurl:latest --version
2021-12-15 16:22:29 +03:00
```
Run Hurl from STDIN:
```
2023-01-26 12:26:36 +03:00
echo -e "GET https://hurl.dev\n\nHTTP/1.1 200" | docker run --rm -i ghcr.io/orange-opensource/hurl:latest --test --color
2021-12-15 16:22:29 +03:00
```
Run Hurl from FILE:
```
echo -e "GET https://hurl.dev\n\nHTTP/1.1 200" > /tmp/test.hurl
2023-01-26 12:26:36 +03:00
docker run --rm -v /tmp/test.hurl:/tmp/test.hurl -w /tmp ghcr.io/orange-opensource/hurl:latest --test --color /tmp/test.hurl
2021-12-15 16:22:29 +03:00
```