diff --git a/package.json b/package.json index 1397395..e7876fd 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "test": "vitest", "dev": "node --watch -r ts-node/register src/index.ts", "start": "tsc && node dist/src/index.js", - "pull-images": "bun pull-images.ts" + "pull-images": "ts-node pull-images.ts" }, "dependencies": { "dockerode": "^4.0.2", @@ -24,7 +24,6 @@ "@types/node": "^20.12.8", "ts-node": "^10.9.2", "vitest": "^1.5.3", - "typescript": "^5.4.5", - "bun": "latest" + "typescript": "^5.4.5" } } diff --git a/pull-images.ts b/pull-images.ts index 38d8506..36b8571 100644 --- a/pull-images.ts +++ b/pull-images.ts @@ -1,5 +1,4 @@ -import { $ } from "bun"; - +import { execSync } from "node:child_process"; import { codeConfig } from "./src/utils/createContainerConfig"; async function pullImages() { @@ -8,7 +7,8 @@ async function pullImages() { for (key in codeConfig) { const image = codeConfig[key].image; try { - await $`docker pull ${codeConfig[key].image}`; + execSync(`docker pull ${image}`); + console.log(`Pulled image: ${image}`); } catch (error) { console.error(`Error pulling image: ${image}`, error); } @@ -16,4 +16,4 @@ async function pullImages() { } pullImages(); -// Path: pull-images.ts +// Path: pull-images.js