-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only run groot as a server
- Loading branch information
Showing
10 changed files
with
41 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ jobs: | |
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release --all-features | ||
|
||
- name: Test | ||
uses: actions-rs/cargo@v1 | ||
|
@@ -73,11 +74,12 @@ jobs: | |
- community.postgresql | ||
EOF | ||
- name: Run | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: run | ||
args: -- sync --requirement requirements.yml | ||
|
||
run: | | ||
./target/release/groot & | ||
sleep 2 | ||
curl -X POST -F '[email protected]' http://127.0.0.1:3030/sync/ | ||
sleep 5 | ||
ansible-galaxy collection install -vvv community.postgresql -c -s http://127.0.0.1:3030/ | ||
macos: | ||
runs-on: macos-latest | ||
strategy: | ||
|
@@ -98,6 +100,7 @@ jobs: | |
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release --all-features | ||
|
||
- name: Test | ||
uses: actions-rs/cargo@v1 | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "groot" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
description = "The coolest guardian of the galaxy!" | ||
repository = "https://github.com/fao89/groot" | ||
authors = ["Fabricio Aguiar <[email protected]>"] | ||
|
@@ -17,7 +17,6 @@ serde_json = "1.0" | |
tokio = { version = "1.11", features = ["rt-multi-thread", "fs"] } | ||
anyhow ="1.0" | ||
url = "2.2" | ||
structopt = "0.3" | ||
futures = "0.3" | ||
yaml-rust = "0.4" | ||
pretty_env_logger = "0.4" | ||
|
@@ -26,7 +25,7 @@ actix-files = "0.6" | |
actix-multipart = "0.4" | ||
serde = { version = "1.0", features = ["derive"] } | ||
dotenv = "0.15" | ||
config = "0.12" | ||
config = "0.13" | ||
semver = "1.0" | ||
diesel = { version = "1.4", features = ["postgres", "r2d2", "serde_json"] } | ||
diesel_migrations = "1.4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,38 +13,26 @@ Please have a `.env` file with the following variables: | |
|
||
## Downloading | ||
```console | ||
$ curl -L https://github.com/fao89/groot/releases/download/0.3.0/groot-linux-amd64 -o groot | ||
$ curl -L https://github.com/fao89/groot/releases/download/0.4.0/groot-linux-amd64 -o groot | ||
$ chmod +x groot | ||
``` | ||
## Sync roles or collections | ||
|
||
Mirror: | ||
- Client-side: | ||
```console | ||
$ ./groot sync --content <roles | collections> | ||
``` | ||
|
||
- Server-side: | ||
```console | ||
$ curl -X POST http://127.0.0.1:3030/sync/<roles | collections> | ||
``` | ||
|
||
From requirements.yml | ||
- Client-side: | ||
```console | ||
$ ./groot sync --requirement requirements.yml | ||
``` | ||
|
||
- Server-side: | ||
```console | ||
$ curl -X POST -F '[email protected]' http://127.0.0.1:3030/sync/ | ||
``` | ||
|
||
## Serving content | ||
```console | ||
$ curl -L https://github.com/fao89/groot/releases/download/0.3.0/groot-linux-amd64 -o groot | ||
$ curl -L https://github.com/fao89/groot/releases/download/0.4.0/groot-linux-amd64 -o groot | ||
$ chmod +x groot | ||
$ ./groot --serve | ||
$ ./groot | ||
``` | ||
Install role/collection from groot: | ||
```console | ||
|
Oops, something went wrong.