Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit 858749c

Browse files
chore: remove worker code from release-please
Signed-off-by: Henry Gressmann <[email protected]>
1 parent fce9e66 commit 858749c

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"crates/nots-cli":"0.1.13","crates/nots-worker":"0.1.4","crates/notsd":"0.1.8"}
1+
{"crates/nots-cli":"0.1.13","crates/notsd":"0.1.8"}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ The different parts of the nots project are versioned independently:
44

55
* **[notsd](./crates/notsd/CHANGELOG.md)**: The nots daemon. This is the main application.
66
* **[nots-cli](./crates/nots-cli/CHANGELOG.md)**: Command line interface for nots.
7-
* **[nots-worker](./crates/nots-worker/CHANGELOG.md)**: The nots worker. This is a background process that manages individual applications.
7+

crates/nots-client/models.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,15 @@ pub enum WorkerRuntimeOptions {
2727

2828
#[derive(Serialize, Deserialize, Clone)]
2929
pub enum DockerRuntimeOptions {
30-
Standalone { image: String, tag: String }, // container without nots-worker
31-
Custom { image: String, tag: String }, // container with nots-worker
32-
Bun { version: String, global_cache: bool },
30+
Custom {
31+
image: String,
32+
tag: String,
33+
},
34+
Runtime {
35+
runtime: String,
36+
version: String,
37+
opts: HashMap<String, String>,
38+
},
3339
}
3440

3541
#[derive(Serialize, Deserialize, Clone, Debug)]

crates/notsd/src/backend/docker.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,14 @@ impl NotsBackend for DockerRuntime {
4040
};
4141

4242
match opt {
43-
DockerRuntimeOptions::Standalone { image, tag } => {
44-
unimplemented!("Standalone docker workers are not yet supported")
45-
}
4643
DockerRuntimeOptions::Custom { image, tag } => {
4744
self.create_worker_container(&name, &image, &tag, None).await?;
4845
}
49-
DockerRuntimeOptions::Bun { version, global_cache } => {
46+
DockerRuntimeOptions::Runtime { opts, runtime, version } => {
5047
let image = format!("ghcr.io/explodingcamera/nots-worker:bun-{}", version);
5148
let tag = "latest".to_string();
52-
let binds = if global_cache {
49+
50+
let binds = if opts.get("bun-cache").is_some() {
5351
Some(vec!["nots_bun_cache:/tmp/bun-cache:rw".to_string()])
5452
} else {
5553
None

release-please-config.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
"crates/notsd": {
1414
"package-name": "notsd"
1515
},
16-
"crates/nots-worker": {
17-
"package-name": "nots-worker"
18-
},
1916
"crates/nots-cli": {
2017
"package-name": "nots-cli"
2118
}

0 commit comments

Comments
 (0)