Skip to content

Commit

Permalink
Refactor file extensions from .js to .ts and update import statements
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelo-schreiber committed May 1, 2024
1 parent 3c36d1d commit a5ba058
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions pull-images.js → pull-images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import { $ } from "bun";

import { codeConfig } from "./src/utils/createContainerConfig";

for (const key in codeConfig) {
let key: keyof typeof codeConfig;

for (key in codeConfig) {
const image = codeConfig[key].image;
try {
await $`docker pull ${codeConfig[key].image}`;
$`docker pull ${codeConfig[key].image}`;
} catch (error) {
console.error(`Error pulling image: ${image}`, error);
}
}

// Path: pull-images.js
// Path: pull-images.ts
2 changes: 1 addition & 1 deletion src/utils/createContainerConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const codeConfig = {
image: "ruby:3.0-slim",
cmd: ["ruby", "-e"],
},
};
} as const;

export const cfg: Docker.ContainerCreateOptions = {
NetworkDisabled: true,
Expand Down

0 comments on commit a5ba058

Please sign in to comment.