Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 88 additions & 0 deletions docs/src/reference/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -28505,6 +28505,94 @@ string



## services.garage.ui.enable



Whether to enable Enable a simple web UI…



*Type:*
boolean



*Default:*

```nix
false
```



*Example:*

```nix
true
```

*Declared by:*
- [https://github.com/cachix/devenv/blob/main/src/modules/services/garage.nix](https://github.com/cachix/devenv/blob/main/src/modules/services/garage.nix)



## services.garage.ui.port



On which port the UI should run.



*Type:*
16 bit unsigned integer; between 0 and 65535 (both inclusive)



*Default:*

```nix
3919
```



*Example:*

```nix
3919
```

*Declared by:*
- [https://github.com/cachix/devenv/blob/main/src/modules/services/garage.nix](https://github.com/cachix/devenv/blob/main/src/modules/services/garage.nix)



## services.garage.ui.start



If the service is by default started or must be manually started.



*Type:*
boolean



*Default:*

```nix
false
```

*Declared by:*
- [https://github.com/cachix/devenv/blob/main/src/modules/services/garage.nix](https://github.com/cachix/devenv/blob/main/src/modules/services/garage.nix)



## services.httpbin.enable


Expand Down
88 changes: 88 additions & 0 deletions docs/src/services/garage.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,3 +287,91 @@ string

*Declared by:*
- [https://github\.com/cachix/devenv/blob/main/src/modules/services/garage\.nix](https://github.com/cachix/devenv/blob/main/src/modules/services/garage.nix)



### services\.garage\.ui\.enable



Whether to enable Enable a simple web UI…



*Type:*
boolean



*Default:*

```nix
false
```



*Example:*

```nix
true
```

*Declared by:*
- [https://github\.com/cachix/devenv/blob/main/src/modules/services/garage\.nix](https://github.com/cachix/devenv/blob/main/src/modules/services/garage.nix)



### services\.garage\.ui\.port



On which port the UI should run\.



*Type:*
16 bit unsigned integer; between 0 and 65535 (both inclusive)



*Default:*

```nix
3919
```



*Example:*

```nix
3919
```

*Declared by:*
- [https://github\.com/cachix/devenv/blob/main/src/modules/services/garage\.nix](https://github.com/cachix/devenv/blob/main/src/modules/services/garage.nix)



### services\.garage\.ui\.start



If the service is by default started or must be manually started\.



*Type:*
boolean



*Default:*

```nix
false
```

*Declared by:*
- [https://github\.com/cachix/devenv/blob/main/src/modules/services/garage\.nix](https://github.com/cachix/devenv/blob/main/src/modules/services/garage.nix)
28 changes: 28 additions & 0 deletions examples/garage/.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env bash
set -ex

wait_for_port "$GARAGE_ADMIN_PORT"
wait_for_port "$GARAGE_S3_PORT"

curl -sf -H "Authorization: Bearer devtoken" \
"http://127.0.0.1:$GARAGE_ADMIN_PORT/v1/health" >/dev/null

BUCKET_NAME="test-bucket"
export GARAGE_RPC_SECRET="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

# Test if a bucket exists
function assert_bucket_exists() {
for _ in $(seq 1 20); do
if ! garage bucket info "$BUCKET_NAME"; then
sleep 1
continue
fi
done
}

if assert_bucket_exists; then
echo "Bucket '$BUCKET_NAME' exists"
else
echo "Bucket '$BUCKET_NAME' does not exist"
exit 1
fi
1 change: 1 addition & 0 deletions tests/garage/devenv.nix → examples/garage/devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{
services.garage = {
enable = true;
rpcSecret = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
buckets = [ "test-bucket" ];
};
}
Loading