Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #120 from hjr3/more-install-info
Browse files Browse the repository at this point in the history
Add package and container info
  • Loading branch information
hjr3 authored Jul 1, 2017
2 parents aa0aa59 + 01f5b87 commit de23b8f
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,34 @@ An eventual goal is to have the pool managed by Raft. This will allow a cluster

## Installation

### Requirements
The _production_ versions of weldr are deployed as static binaries. There are two general methods of installation:

* Packages for common operating systems are located at [https://packagecloud.io/weldr/weldr](https://packagecloud.io/weldr/weldr).
* A container repository is located at [https://hub.docker.com/r/weldr/weldr/](https://hub.docker.com/r/weldr/weldr/).

### From Source

#### Requirements

* capnproto
* A TLS library compatible with rust-tls

### Installing on Ubuntu
Installing requirements on Ubuntu:

```
$ apt-get update && apt-get install gcc libssl-dev pkg-config capnproto
```

### Docker
#### Docker

See [DOCKER.md](./DOCKER.md) for details.

## Usage

* Start the proxy - `RUST_LOG=weldr cargo run --bin weldr`
* Start the proxy - `RUST_LOG=weldr cargo run --bin weldr` or `RUST_LOG=weldr /path/to/weldr`
* Add a server to the pool - `curl localhost:8687/servers -d '{"url":"http://127.0.0.1:12345"}'`
* Start test origin server - `cargo run --bin test-server` - start test origin server
* Start test origin server - `cargo run --bin test-server` - start test origin server. This is not provided by packages or the container.
* The test-server provides two routes: `/` and `/large`
* Send a request - `curl -vvv localhost:8080/`
* Send a request and get back a large response - `curl -vvv localhost:8080/large`

Expand Down

0 comments on commit de23b8f

Please sign in to comment.