Skip to content

Commit 5381b13

Browse files
committed
refactor(settings): remove deprecated Docker image functions
- Eliminated the getDokployImage and pullLatestRelease functions to streamline the settings service. - Updated the code to focus on dynamic image retrieval, enhancing clarity and maintainability.
1 parent 66ae8e1 commit 5381b13

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

packages/server/src/services/settings.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { readdirSync } from "node:fs";
22
import { join } from "node:path";
3-
import { docker } from "@dokploy/server/constants";
43
import {
54
execAsync,
65
execAsyncRemote,
@@ -26,19 +25,6 @@ export const getDokployImageTag = () => {
2625
return process.env.RELEASE_TAG || "latest";
2726
};
2827

29-
export const getDokployImage = () => {
30-
return `dokploy/dokploy:${getDokployImageTag()}`;
31-
};
32-
33-
export const pullLatestRelease = async () => {
34-
const stream = await docker.pull(getDokployImage());
35-
await new Promise((resolve, reject) => {
36-
docker.modem.followProgress(stream, (err, res) =>
37-
err ? reject(err) : resolve(res),
38-
);
39-
});
40-
};
41-
4228
/** Returns Dokploy docker service image digest */
4329
export const getServiceImageDigest = async () => {
4430
const { stdout } = await execAsync(

0 commit comments

Comments
 (0)