groot
所属分类:collect
开发工具:Rust
文件大小:0KB
下载次数:0
上传日期:2023-07-11 15:57:56
上 传 者:
sh-1993
说明: 银河系最酷的守护者!,
(The coolest guardian of the galaxy!,)
文件列表:
.dockerignore (23, 2023-12-19)
.env.example (127, 2023-12-19)
Cargo.lock (69320, 2023-12-19)
Cargo.toml (1140, 2023-12-19)
Dockerfile (316, 2023-12-19)
diesel.toml (136, 2023-12-19)
docker-compose.yml (1624, 2023-12-19)
migrations/ (0, 2023-12-19)
migrations/00000000000000_diesel_initial_setup/ (0, 2023-12-19)
migrations/00000000000000_diesel_initial_setup/down.sql (328, 2023-12-19)
migrations/00000000000000_diesel_initial_setup/up.sql (1145, 2023-12-19)
migrations/2021-03-10-232613_create_collections/ (0, 2023-12-19)
migrations/2021-03-10-232613_create_collections/down.sql (23, 2023-12-19)
migrations/2021-03-10-232613_create_collections/up.sql (136, 2023-12-19)
migrations/2021-03-14-025247_create_collection_versions/ (0, 2023-12-19)
migrations/2021-03-14-025247_create_collection_versions/down.sql (31, 2023-12-19)
migrations/2021-03-14-025247_create_collection_versions/up.sql (268, 2023-12-19)
src/ (0, 2023-12-19)
src/config.rs (482, 2023-12-19)
src/db_utils/ (0, 2023-12-19)
src/db_utils/mod.rs (758, 2023-12-19)
src/main.rs (427, 2023-12-19)
src/models.rs (1013, 2023-12-19)
src/schema.rs (434, 2023-12-19)
src/sync/ (0, 2023-12-19)
src/sync/collections.rs (12879, 2023-12-19)
src/sync/common.rs (9930, 2023-12-19)
src/sync/decode.rs (4004, 2023-12-19)
src/sync/mod.rs (350, 2023-12-19)
src/sync/roles.rs (4161, 2023-12-19)
src/sync/utils.rs (3278, 2023-12-19)
src/web/ (0, 2023-12-19)
src/web/mod.rs (60, 2023-12-19)
src/web/routes.rs (16980, 2023-12-19)
... ...
![Continuous Integration](https://github.com/fao89/groot/workflows/Continuous%20Integration/badge.svg)
![license](https://img.shields.io/crates/l/groot)
![Latest version](https://img.shields.io/crates/v/groot.svg)
![Downloads](https://img.shields.io/crates/d/groot)
# I am Groot!
![groot](https://www.redringtones.com/wp-content/uploads/2019/04/i-am-groot-ringtone.jpg)
## Required variables
Please have a `.env` file with the following variables:
- `SERVER.HOST`: The host address e.g. `127.0.0.1`
- `SERVER.PORT`: The host port e.g. `3030`
- `DATABASE_URL`: The postgres DB URL e.g. `postgres://groot:groot@localhost:5432/groot`
- `REDIS_URL`: The redis URL e.g. `redis://redis:6379`
## Downloading
```console
$ curl -L https://github.com/fao89/groot/releases/download/0.6.1/groot-linux-amd64 -o groot
$ chmod +x groot
```
## Sync roles or collections
Mirror:
```console
$ curl -X POST http://127.0.0.1:3030/sync/
```
From requirements.yml
```console
$ curl -X POST -F 'requirements=@requirements.yml' http://127.0.0.1:3030/sync/
```
## Upload collections
```console
$ ansible-galaxy collection publish -c -s http://127.0.0.1:3030/
```
## Serving content
```console
$ curl -L https://github.com/fao89/groot/releases/download/0.6.1/groot-linux-amd64 -o groot
$ chmod +x groot
$ ./groot
```
Install role/collection from groot:
```console
$ ansible-galaxy install . -c -s http://127.0.0.1:3030/
```
近期下载者:
相关文件:
收藏者: