A simple server for mirroring HTTP requests for testing.
Go to file
Dorian e89e1a394e
continuous-integration/drone/push Build is passing Details
Only release a Docker image on a tag.
2024-02-23 15:00:07 -05:00
src Clean up code and add plans for future releases. 2024-02-21 21:44:18 -05:00
.dockerignore Add a Dockerfile and initial DroneCI configuration. 2024-02-21 23:17:17 -05:00
.drone.yml Only release a Docker image on a tag. 2024-02-23 15:00:07 -05:00
.gitignore Migrate to using axum over actix for web framework. 2024-02-06 15:51:30 -05:00
Cargo.toml Add tests for the mirror-server handling of requests. 2024-02-21 21:38:20 -05:00
Dockerfile Improve the documentation for the README. 2024-02-23 14:45:18 -05:00
LICENSE Wire up project for working with actix. 2023-01-12 09:41:47 -05:00
README.md Improve the documentation for the README. 2024-02-23 14:45:18 -05:00
publish-deb.sh Update README and improve publishing script. 2024-02-23 14:29:48 -05:00

README.md

mirror-server

A simple server for mirroring HTTP requests for testing.

Build Status

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
  • 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