@bizone-ai/cli 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/docker.js +12 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizone-ai/cli",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Assistant CLI for running the Bizone orchestrator platform locally with Docker",
5
5
  "type": "module",
6
6
  "bin": {
package/src/docker.js CHANGED
@@ -149,6 +149,8 @@ export function runDetached({
149
149
  network,
150
150
  "--network-alias",
151
151
  name,
152
+ "--pull",
153
+ "always"
152
154
  ];
153
155
  if (hostPort != null && containerPort != null) {
154
156
  args.push("-p", `${hostPort}:${containerPort}`);
@@ -172,7 +174,16 @@ export function runDetached({
172
174
  // Run a container in the foreground (blocking), removing it on exit.
173
175
  export function runBlocking({ name, image, env = {}, network }) {
174
176
  return new Promise((resolve, reject) => {
175
- const args = ["run", "--rm", "--name", name, "--network", network];
177
+ const args = [
178
+ "run",
179
+ "--rm",
180
+ "--name",
181
+ name,
182
+ "--network",
183
+ network,
184
+ "--pull",
185
+ "always"
186
+ ];
176
187
  for (const [k, v] of Object.entries(env)) {
177
188
  if (v === undefined || v === null || v === "") continue;
178
189
  args.push("-e", `${k}=${v}`);