Skip to content

Commit

Permalink
Update README and fix default docker image command
Browse files Browse the repository at this point in the history
  • Loading branch information
jlarfors committed Aug 4, 2022
1 parent 4a61d01 commit 202b141
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
1 change: 0 additions & 1 deletion Dockerfile.goreleaser
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ COPY http-echo /http-echo
USER nonroot:nonroot

ENTRYPOINT ["/http-echo"]
CMD ["--help"]
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
# http-echo

Forked from <https://github.com/hashicorp/http-echo>

=========

HTTP Echo is a small go web server that serves the contents it was started with
as an HTML page.

## Install

### Homebrew

```bash
brew install verifa/tap/http-echo
```

### Docker

```bash
docker run verifa/http-echo -env ECHO_TEXT='hello world!'
```

The default port is 5678, but this is configurable via the `-listen` flag or `ECHO_TEXT` environment variable:

```bash
Expand All @@ -18,3 +30,7 @@ ECHO_TEXT="hello world" http-echo -listen=:8080
```

Then visit <http://localhost:8080/> in your browser.

=========

Forked from <https://github.com/hashicorp/http-echo>

0 comments on commit 202b141

Please sign in to comment.