Skip to content

Commit 825ff06

Browse files
authored
support JSON labels (#25)
1 parent f84997d commit 825ff06

File tree

8 files changed

+437
-390
lines changed

8 files changed

+437
-390
lines changed

.devcontainer/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
2+
3+
# use this Dockerfile to install additional tools you might need, e.g.
4+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
5+
# && apt-get -y install --no-install-recommends <your-package-list-here>

.devcontainer/devcontainer.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// The Dev Container format allows you to configure your environment. At the heart of it
2+
// is a Docker image or Dockerfile which controls the tools available in your environment.
3+
//
4+
// See https://aka.ms/devcontainer.json for more information.
5+
{
6+
"name": "Gorse",
7+
// Use "image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
8+
// instead of the build to use a pre-built image.
9+
"build": {
10+
"context": ".",
11+
"dockerfile": "Dockerfile"
12+
},
13+
// Features add additional features to your environment. See https://containers.dev/features
14+
// Beware: features are not supported on all platforms and may have unintended side-effects.
15+
"features": {
16+
"ghcr.io/devcontainers/features/docker-in-docker": {
17+
"moby": false
18+
},
19+
"ghcr.io/devcontainers/features/rust": {}
20+
}
21+
}

.github/workflows/ci.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,8 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v2
19-
- name: Build the stack
20-
run: docker compose up -d
21-
- name: Check the deployed service health
22-
uses: jtalk/url-health-check-action@v2
23-
with:
24-
# Check the following URLs one by one sequentially
25-
url: http://127.0.0.1:8088/metrics
26-
# Fail this action after this many failed attempts
27-
max-attempts: 5
28-
# Delay between retries
29-
retry-delay: 5s
30-
# Retry all errors, including 404. This option might trigger curl upgrade.
31-
retry-all: true
19+
- name: Setup test
20+
run: curl -sL https://github.com/gorse-io/gorse/raw/refs/heads/master/client/setup-test.sh | bash
3221
- name: Build
3322
run: cargo build --verbose
3423
- name: Run tests

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ These following installations are required:
1414
- **Docker Compose**: Start a local Gorse cluster for testing.
1515

1616
```bash
17-
docker-compose up -d
17+
curl -sL https://github.com/gorse-io/gorse/raw/refs/heads/master/client/setup-test.sh | bash
1818
```
1919

2020
### Run Unit Tests

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "gorse_rs"
3-
version = "0.4.1"
3+
version = "0.5.0"
44
edition = "2021"
55
description = "Rust SDK for gorse recommender system"
66
readme = "README.md"
@@ -11,11 +11,11 @@ keywords = ["gorse", "machine-learning", "recommender-system"]
1111
categories = ["algorithms", "science"]
1212

1313
[dependencies]
14-
reqwest = { version = "0.12", features = ["blocking", "json"] }
14+
reqwest = { version = "0.12", default-features = false, features = ["blocking", "json", "rustls-tls"] }
1515
serde = { version = "1.0", features = ["derive"] }
1616
serde_json = "1.0"
17+
serial_test = "3.2.0"
1718

1819
[dev-dependencies]
1920
chrono = "0.4.23"
20-
redis = "0.32.0"
2121
tokio = { version = "1.22.0", features = ["macros"] }

config.toml

Lines changed: 0 additions & 183 deletions
This file was deleted.

docker-compose.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)