Skip to content

Commit

Permalink
fix/nanocl: installer with new not-init-c label (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
leon3s authored Nov 1, 2024
1 parent 25d9619 commit 8085c2f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions bin/nanocl/src/utils/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ pub fn hook_labels(
hooked_labels.insert("io.nanocl.kind".to_owned(), "cargo".to_owned());
hooked_labels.insert("io.nanocl.c".to_owned(), key.to_owned());
hooked_labels.insert("io.nanocl.n".to_owned(), namespace.to_owned());
hooked_labels.insert("io.nanocl.not-init-c".to_owned(), "true".to_owned());
hooked_labels.insert(
"com.docker.compose.project".to_owned(),
format!("nanocl_{namespace}"),
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ services:
- io.nanocl.kind=cargo
- io.nanocl.c=nstore.system
- io.nanocl.n=system
- io.nanocl.not-init-c=true
command:
- -c
- |
Expand Down Expand Up @@ -61,6 +62,7 @@ services:
- io.nanocl.kind=cargo
- io.nanocl.c=nmetrics.system
- io.nanocl.n=system
- io.nanocl.not-init-c=true
volumes:
- //run/guest-services/nanocl:/run/nanocl

Expand All @@ -80,6 +82,7 @@ services:
- io.nanocl.kind=cargo
- io.nanocl.c=nproxy.system
- io.nanocl.n=system
- io.nanocl.not-init-c=true
volumes:
- //run/guest-services/nanocl:/run/nanocl
- ${STATE_DIR:-${HOME}/.nanocl_dev/state}/proxy:${STATE_DIR:-${HOME}/.nanocl_dev/state}/proxy
Expand All @@ -105,6 +108,7 @@ services:
- io.nanocl.kind=cargo
- io.nanocl.c=ncproxy.system
- io.nanocl.n=system
- io.nanocl.not-init-c=true
volumes:
- type: bind
source: .
Expand All @@ -130,6 +134,7 @@ services:
- io.nanocl.kind=cargo
- io.nanocl.c=ndns.system
- io.nanocl.n=system
- io.nanocl.not-init-c=true
volumes:
- ${STATE_DIR:-${HOME}/.nanocl_dev/state}/dns:${STATE_DIR:-${HOME}/.nanocl_dev/state}/dns

Expand All @@ -154,6 +159,7 @@ services:
- io.nanocl.kind=cargo
- io.nanocl.c=ncdns.system
- io.nanocl.n=system
- io.nanocl.not-init-c=true
volumes:
- type: bind
source: .
Expand All @@ -178,6 +184,7 @@ services:
- io.nanocl.kind=cargo
- io.nanocl.c=ndaemon.system
- io.nanocl.n=system
- io.nanocl.not-init-c=true
volumes:
- type: bind
source: .
Expand Down Expand Up @@ -226,6 +233,7 @@ services:
- io.nanocl.kind=cargo
- io.nanocl.c=dbeaver.system
- io.nanocl.n=system
- io.nanocl.not-init-c=true
volumes:
- ${STATE_DIR:-${HOME}/.nanocl_dev}/dbeaver:/opt/cloudbeaver/workspace

Expand All @@ -245,6 +253,7 @@ services:
- io.nanocl.kind=cargo
- io.nanocl.c=ndaemon.system
- io.nanocl.n=system
- io.nanocl.not-init-c=true
volumes:
- type: bind
source: .
Expand Down

0 comments on commit 8085c2f

Please sign in to comment.