A very simple, lightweight repository manager written in rust.
Report Bug
·
Request Feature
Table of Contents
This project was started becasue I wanted something like Nexus OSS to host my Archlinux repository. I, however, wanted something lightweight, as it should not eat resources doing nothing most of the time.
As such I first implemented a raw FileRepository
, which can just GET
and PUT
arbitrary files inside the repository, storing them on disk.
There are two ways to use the server:
- Docker
- Build it yourself
For this to work you have to have a working docker installation and a config.yaml
(see Configuration) file. The you can run the docker container with:
docker run -p 8000:8000 -v $(realpath config.yaml):/config.yaml dasbaumwolltier/simple-repository-manager:0.1.4
This software is built with rust, so you need an up to date stable
rust installation. For this consult the examples below or your favourite search engine.
- Archlinux
sudo pacman -S rustup
rustup toolchain install stable
- Other Linux Distros (with curl installed)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup toolchain install stable
You can build a binary from the repository by first cloning the repository, then running:
cargo build --release
After which you will find the binary under target/release/simple-repository-manager
. This binary the can be run like so for example target/release/simple-repository-manager --config config.yaml
.
The server is configured using a config.yaml
file, of which all options are documented thoroughly in the template-config.yaml
.
The only command line options available are:
-c
|--config
: The path of theconfig.yaml
file-h
|--host
(optional): The host the server should listen on-p
|--port
(optional): The port the server should listen on-v
|--verbose
(optional, repeatable): Changes the log level fromInfo
toDebug
andTrace
with1
and2
occurrences respectively
- Cache Header
- ETag/Last Modified
- Retention Policy
- Add
deleteFile
method to provider - Add
DELETE
Endpoint
- Add
- Refactor authentication
- Move authentication out of
Repository
and leave authorization inRepository
- Create
AuthenticationProvider
- (Add more sophisticated user management)
- Move authentication out of
- Documentation
- Add more providers
- ...
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have suggestions that would make the project better, please open an issue with the tag "enhancement". If you want to implement it, please also first open an issue to discuss.
Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This work is licensed the Apache License 2.0. See LICENSE
for more information.
Gabriel Guldner - @dasbaumwolltier - [email protected]
Project Link: https://github.com/dasbaumwolltier/simple-repository-manager