Skip to content

Commit 4628930

Browse files
authored
Merge pull request #853 from Dokploy/canary
v0.14.1
2 parents 7ecd162 + 0b3e15a commit 4628930

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

.circleci/config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ workflows:
9999
only:
100100
- main
101101
- canary
102-
- 379-preview-deployment
102+
- fix/nixpacks-version
103103
- build-arm64:
104104
filters:
105105
branches:
106106
only:
107107
- main
108108
- canary
109-
- 379-preview-deployment
109+
- fix/nixpacks-version
110110
- combine-manifests:
111111
requires:
112112
- build-amd64
@@ -116,4 +116,4 @@ workflows:
116116
only:
117117
- main
118118
- canary
119-
- 379-preview-deployment
119+
- fix/nixpacks-version

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ RUN curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh && rm
4848

4949
# Install Nixpacks and tsx
5050
# | VERBOSE=1 VERSION=1.21.0 bash
51+
52+
ARG NIXPACKS_VERSION=1.29.1
5153
RUN curl -sSL https://nixpacks.com/install.sh -o install.sh \
5254
&& chmod +x install.sh \
5355
&& ./install.sh \

apps/dokploy/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dokploy",
3-
"version": "v0.14.0",
3+
"version": "v0.14.1",
44
"private": true,
55
"license": "Apache-2.0",
66
"type": "module",

packages/server/src/setup/server-setup.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,8 @@ const installNixpacks = () => `
522522
if command_exists nixpacks; then
523523
echo "Nixpacks already installed ✅"
524524
else
525-
VERSION=1.28.1 bash -c "$(curl -fsSL https://nixpacks.com/install.sh)"
525+
export NIXPACKS_VERSION=1.29.1
526+
bash -c "$(curl -fsSL https://nixpacks.com/install.sh)"
526527
echo "Nixpacks version 1.28.1 installed ✅"
527528
fi
528529
`;

packages/server/src/utils/gpu-setup.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ const setupLocalServer = async (daemonConfig: any) => {
303303
await fs.writeFile(configFile, JSON.stringify(daemonConfig, null, 2));
304304

305305
const setupCommands = [
306-
`pkexec sh -c '
306+
`sudo sh -c '
307307
cp ${configFile} /etc/docker/daemon.json &&
308308
mkdir -p /etc/nvidia-container-runtime &&
309309
sed -i "/swarm-resource/d" /etc/nvidia-container-runtime/config.toml &&
@@ -314,7 +314,14 @@ const setupLocalServer = async (daemonConfig: any) => {
314314
`rm ${configFile}`,
315315
].join(" && ");
316316

317-
await execAsync(setupCommands);
317+
try {
318+
await execAsync(setupCommands);
319+
} catch (error) {
320+
console.error("Setup failed:", error);
321+
throw new Error(
322+
"Failed to configure GPU support. Please ensure you have sudo privileges and try again.",
323+
);
324+
}
318325
};
319326

320327
const addGpuLabel = async (nodeId: string, serverId?: string) => {

0 commit comments

Comments
 (0)