build: update nixpacks to 1.35.0

This commit is contained in:
Alexander Sjösten
2025-04-25 09:58:52 +02:00
parent cd4eed3507
commit d4c6e5b048
3 changed files with 123 additions and 126 deletions

View File

@@ -147,11 +147,9 @@ curl -sSL https://railpack.com/install.sh | sh
```bash ```bash
# Install Buildpacks # Install Buildpacks
curl -sSL "https://github.com/buildpacks/pack/releases/download/v0.32.1/pack-v0.32.1-linux.tgz" | tar -C /usr/local/bin/ --no-same-owner -xzv pack curl -sSL "https://github.com/buildpacks/pack/releases/download/v0.35.0/pack-v0.35.0-linux.tgz" | tar -C /usr/local/bin/ --no-same-owner -xzv pack
``` ```
## Pull Request ## Pull Request
- The `main` branch is the source of truth and should always reflect the latest stable release. - The `main` branch is the source of truth and should always reflect the latest stable release.
@@ -169,7 +167,6 @@ Thank you for your contribution!
To add a new template, go to `https://github.com/Dokploy/templates` repository and read the README.md file. To add a new template, go to `https://github.com/Dokploy/templates` repository and read the README.md file.
### Recommendations ### Recommendations
- Use the same name of the folder as the id of the template. - Use the same name of the folder as the id of the template.

View File

@@ -49,7 +49,7 @@ RUN curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh && rm
# Install Nixpacks and tsx # Install Nixpacks and tsx
# | VERBOSE=1 VERSION=1.21.0 bash # | VERBOSE=1 VERSION=1.21.0 bash
ARG NIXPACKS_VERSION=1.29.1 ARG NIXPACKS_VERSION=1.35.0
RUN curl -sSL https://nixpacks.com/install.sh -o install.sh \ RUN curl -sSL https://nixpacks.com/install.sh -o install.sh \
&& chmod +x install.sh \ && chmod +x install.sh \
&& ./install.sh \ && ./install.sh \

View File

@@ -34,7 +34,7 @@ export const slugify = (text: string | undefined) => {
export const serverSetup = async ( export const serverSetup = async (
serverId: string, serverId: string,
onData?: (data: any) => void, onData?: (data: any) => void
) => { ) => {
const server = await findServerById(serverId); const server = await findServerById(serverId);
const { LOGS_PATH } = paths(); const { LOGS_PATH } = paths();
@@ -181,7 +181,7 @@ ${installRailpack()}
const installRequirements = async ( const installRequirements = async (
serverId: string, serverId: string,
onData?: (data: any) => void, onData?: (data: any) => void
) => { ) => {
const client = new Client(); const client = new Client();
const server = await findServerById(serverId); const server = await findServerById(serverId);
@@ -217,12 +217,12 @@ const installRequirements = async (
client.end(); client.end();
if (err.level === "client-authentication") { if (err.level === "client-authentication") {
onData?.( onData?.(
`Authentication failed: Invalid SSH private key. ❌ Error: ${err.message} ${err.level}`, `Authentication failed: Invalid SSH private key. ❌ Error: ${err.message} ${err.level}`
); );
reject( reject(
new Error( new Error(
`Authentication failed: Invalid SSH private key. ❌ Error: ${err.message} ${err.level}`, `Authentication failed: Invalid SSH private key. ❌ Error: ${err.message} ${err.level}`
), )
); );
} else { } else {
onData?.(`SSH connection error: ${err.message} ${err.level}`); onData?.(`SSH connection error: ${err.message} ${err.level}`);
@@ -577,7 +577,7 @@ const installNixpacks = () => `
if command_exists nixpacks; then if command_exists nixpacks; then
echo "Nixpacks already installed ✅" echo "Nixpacks already installed ✅"
else else
export NIXPACKS_VERSION=1.29.1 export NIXPACKS_VERSION=1.35.0
bash -c "$(curl -fsSL https://nixpacks.com/install.sh)" bash -c "$(curl -fsSL https://nixpacks.com/install.sh)"
echo "Nixpacks version $NIXPACKS_VERSION installed ✅" echo "Nixpacks version $NIXPACKS_VERSION installed ✅"
fi fi