jetbrains/intellij-http-client
Official Docker image for IntelliJ HTTP Client CLI
100K+
This is a Docker image for IntelliJ HTTP Client CLI by JetBrains.
Image expects /workdir
volume. HTTP Client inside container uses /workdir
as current working directory, so all paths should be relative to it.
Example command:
$ docker run --rm -i -t -v $PWD:/workdir jetbrains/intellij-http-client \
-L VERBOSE \
-e env \
-v env.json \
requests.http
In the case of testing services, which are executed on the host machine, it is possible to use -D
.
This option tells HTTP Client to resolve localhost
from the request to localhost
of the host machine, instead of container.
So, if there is a file test.http
with request to localhost
:
### Test simple GET
GET http://localhost:8080/my-api/
and service running on the host machine and listening to 8080
port,
we can simply test it with docker container using the following command with -D
option:
$ docker run --rm -v $PWD:/workdir jetbrains/intellij-http-client -D test.http
Under the hood, HTTP Client resolves localhost
to docker.host.internal
, which points to localhost
of the host machine.
You can read this StackOverflow comment about how to enable host.docker.internal
on your OS and
what other options for accessing localhost
are possible.
To file an issue or feature request, please create a ticket in our tracker.
docker pull jetbrains/intellij-http-client