diff --git a/Dockerfile b/Dockerfile index 097a0da..8911692 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.76 AS BUILD +FROM rust:1.76-buster AS BUILD ENV APP_NAME=mirror-server ENV APP_HOME=/srv/${APP_NAME} diff --git a/README.md b/README.md index c165ec7..e045668 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,16 @@ A simple server for mirroring HTTP requests for testing. ## Install +### Docker Image + +Run via Docker using: + +```bash +docker run code.birch-tree.net/dorian/mirror-server:latest +``` + +### Debian Package + Download the DEB file, and install it: ```bash @@ -26,12 +36,9 @@ 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 -* [x] Migrate actix to axum for easier maintainability. -* [x] Add mirroring of JSON request. -* [x] Add logging to server. -* [x] Create Docker image for mirror-server for easier distribution. -* [x] Add publishing of DEB and Docker image to DroneCI. * [ ] Add documentation to the API. * [ ] Publish crate on .