Dorian
31164bc3af
continuous-integration/drone/push Build is passing
Details
|
||
---|---|---|
src | ||
.dockerignore | ||
.drone.yml | ||
.gitignore | ||
Cargo.toml | ||
Dockerfile | ||
LICENSE | ||
README.md | ||
publish-deb.sh |
README.md
mirror-server
A simple server for mirroring HTTP requests for testing.
Getting Started
- Use the latest stable version of Rust using rustup.
- Build:
cargo build
- Test:
cargo test
- Run the server:
cargo run -- --port=8080
- Create a DEB package:
- Install cargo-deb:
cargo install cargo-deb
- Create the DEB package:
cargo deb
- Install cargo-deb:
- Faster builds using cargo-watch:
cargo watch -x run
Install
Docker Image
Run via Docker using:
docker run code.birch-tree.net/dorian/mirror-server:latest
Debian Package
Download the DEB file, and install it:
VERSION=0.3.0
REPO_URL=https://code.birch-tree.net/api/packages/dorian/generic/mirror-server/
curl "${REPO_URL}/${VERSION}/mirror-server_${VERSION}_amd64.deb"
sudo dpkg -i "mirror-server-${VERSION}_amd64.deb"
Afterward you can run using mirror-server
TODO
- Add documentation to the API.
- Publish crate on https://crates.io/.