mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-23 00:44:55 +03:00
Update docker contrib doc
This commit is contained in:
parent
007d461f8e
commit
c25798ff15
@ -1,9 +1,16 @@
|
||||
# Connect to github container registry
|
||||
|
||||
```
|
||||
echo <hurl-bot github token> | docker login ghcr.io --username hurl-bot --password-stdin
|
||||
```
|
||||
|
||||
# Build image
|
||||
|
||||
```
|
||||
hurl_latest_version=$(curl --silent "https://api.github.com/repos/Orange-OpenSource/hurl/releases/latest" | jq -r .tag_name)
|
||||
docker_build_date=$(date "+%Y-%m-%d %H-%M-%S")
|
||||
docker build --build-arg docker_build_date="${docker_build_date}" --build-arg hurl_latest_version=${hurl_latest_version} --tag hurl:latest --tag hurl:${hurl_latest_version} .
|
||||
docker builder prune --all
|
||||
docker build --build-arg docker_build_date="${docker_build_date}" --build-arg hurl_latest_version=${hurl_latest_version} --tag ghcr.io/orange-opensource/hurl:latest --tag ghcr.io/orange-opensource/hurl:${hurl_latest_version} .
|
||||
```
|
||||
|
||||
# Get docker hurl version
|
||||
@ -24,3 +31,10 @@ echo -e "GET https://hurl.dev\n\nHTTP/1.1 200" | docker run --rm -i hurl:latest
|
||||
echo -e "GET https://hurl.dev\n\nHTTP/1.1 200" > /tmp/test.hurl
|
||||
docker run --rm -v /tmp/test.hurl:/tmp/test.hurl hurl:latest --test --color /tmp/test.hurl
|
||||
```
|
||||
|
||||
# Push to github container registry
|
||||
|
||||
```
|
||||
docker push ghcr.io/orange-opensource/hurl:${hurl_latest_version}
|
||||
docker push ghcr.io/orange-opensource/hurl:latest
|
||||
```
|
||||
|
@ -1,34 +1,37 @@
|
||||
# Quick references
|
||||
# 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
|
||||
|
||||
- **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
|
||||
|
||||
# What is Hurl ?
|
||||
### What is Hurl ?
|
||||
|
||||
![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.
|
||||
|
||||
# How to use this image
|
||||
### How to use this image
|
||||
|
||||
Get Hurl version:
|
||||
|
||||
```
|
||||
docker run --rm orangeopensource/hurl:latest --version
|
||||
docker run --rm ghcr.io/orange-opensource/hurl:latest --version
|
||||
```
|
||||
|
||||
Run Hurl from STDIN:
|
||||
|
||||
```
|
||||
echo -e "GET https://hurl.dev\n\nHTTP/1.1 200" | docker run --rm -i orangeopensource/hurl:latest --test --color
|
||||
echo -e "GET https://hurl.dev\n\nHTTP/1.1 200" | docker run --rm -i ghcr.io/orange-opensource/hurl:latest --test --color
|
||||
```
|
||||
|
||||
Run Hurl from FILE:
|
||||
|
||||
```
|
||||
echo -e "GET https://hurl.dev\n\nHTTP/1.1 200" > /tmp/test.hurl
|
||||
docker run --rm -v /tmp/test.hurl:/tmp/test.hurl -w /tmp orangeopensource/hurl:latest --test --color /tmp/test.hurl
|
||||
docker run --rm -v /tmp/test.hurl:/tmp/test.hurl -w /tmp ghcr.io/orange-opensource/hurl:latest --test --color /tmp/test.hurl
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user