commit
fdce70937f
@ -671,11 +671,10 @@ export async function buildCacheImageWithNode(data, imageForBuild) {
|
|||||||
if (isPnpm) {
|
if (isPnpm) {
|
||||||
Dockerfile.push('RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7');
|
Dockerfile.push('RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7');
|
||||||
}
|
}
|
||||||
|
Dockerfile.push(`COPY .${baseDirectory || ''} ./`);
|
||||||
if (installCommand) {
|
if (installCommand) {
|
||||||
Dockerfile.push(`COPY .${baseDirectory || ''}/package.json ./`);
|
|
||||||
Dockerfile.push(`RUN ${installCommand}`);
|
Dockerfile.push(`RUN ${installCommand}`);
|
||||||
}
|
}
|
||||||
Dockerfile.push(`COPY .${baseDirectory || ''} ./`);
|
|
||||||
Dockerfile.push(`RUN ${buildCommand}`);
|
Dockerfile.push(`RUN ${buildCommand}`);
|
||||||
await fs.writeFile(`${workdir}/Dockerfile-cache`, Dockerfile.join('\n'));
|
await fs.writeFile(`${workdir}/Dockerfile-cache`, Dockerfile.join('\n'));
|
||||||
await buildImage({ ...data, isCache: true });
|
await buildImage({ ...data, isCache: true });
|
||||||
|
@ -19,7 +19,7 @@ import * as serviceFields from './serviceFields'
|
|||||||
import { saveBuildLog } from './buildPacks/common';
|
import { saveBuildLog } from './buildPacks/common';
|
||||||
import { scheduler } from './scheduler';
|
import { scheduler } from './scheduler';
|
||||||
|
|
||||||
export const version = '3.8.4';
|
export const version = '3.8.5';
|
||||||
export const isDev = process.env.NODE_ENV === 'development';
|
export const isDev = process.env.NODE_ENV === 'development';
|
||||||
|
|
||||||
const algorithm = 'aes-256-ctr';
|
const algorithm = 'aes-256-ctr';
|
||||||
|
@ -34,7 +34,7 @@ export async function getImages(request: FastifyRequest<GetImages>) {
|
|||||||
const { buildPack, deploymentType } = request.body
|
const { buildPack, deploymentType } = request.body
|
||||||
let publishDirectory = undefined;
|
let publishDirectory = undefined;
|
||||||
let port = undefined
|
let port = undefined
|
||||||
const { baseImage, baseBuildImage, baseBuildImages, baseImages, } = setDefaultBaseImage(
|
const { baseImage, baseBuildImage, baseBuildImages, baseImages } = setDefaultBaseImage(
|
||||||
buildPack, deploymentType
|
buildPack, deploymentType
|
||||||
);
|
);
|
||||||
if (buildPack === 'nextjs') {
|
if (buildPack === 'nextjs') {
|
||||||
@ -56,8 +56,7 @@ export async function getImages(request: FastifyRequest<GetImages>) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return { baseImage, baseImages, baseBuildImage, baseBuildImages, publishDirectory, port }
|
||||||
return { baseBuildImage, baseBuildImages, publishDirectory, port }
|
|
||||||
} catch ({ status, message }) {
|
} catch ({ status, message }) {
|
||||||
return errorHandler({ status, message })
|
return errorHandler({ status, message })
|
||||||
}
|
}
|
||||||
@ -232,7 +231,6 @@ export async function saveApplication(request: FastifyRequest<SaveApplication>,
|
|||||||
baseBuildImage,
|
baseBuildImage,
|
||||||
deploymentType
|
deploymentType
|
||||||
} = request.body
|
} = request.body
|
||||||
|
|
||||||
if (port) port = Number(port);
|
if (port) port = Number(port);
|
||||||
if (exposePort) {
|
if (exposePort) {
|
||||||
exposePort = Number(exposePort);
|
exposePort = Number(exposePort);
|
||||||
|
@ -120,7 +120,13 @@
|
|||||||
<nav class="nav-main">
|
<nav class="nav-main">
|
||||||
<div class="flex h-screen w-full flex-col items-center transition-all duration-100">
|
<div class="flex h-screen w-full flex-col items-center transition-all duration-100">
|
||||||
{#if !$appSession.whiteLabeled}
|
{#if !$appSession.whiteLabeled}
|
||||||
<div class="my-4 h-10 w-10"><img src="/favicon.png" alt="coolLabs logo" /></div>
|
<div class="mb-2 mt-4 h-10 w-10">
|
||||||
|
<img src="/favicon.png" alt="coolLabs logo" />
|
||||||
|
</div>
|
||||||
|
{:else if $appSession.whiteLabeledDetails.icon}
|
||||||
|
<div class="mb-2 mt-4 h-10 w-10">
|
||||||
|
<img src={$appSession.whiteLabeledDetails.icon} alt="White labeled logo" />
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="flex flex-col space-y-2 py-2" class:mt-2={$appSession.whiteLabeled}>
|
<div class="flex flex-col space-y-2 py-2" class:mt-2={$appSession.whiteLabeled}>
|
||||||
<a
|
<a
|
||||||
|
@ -114,10 +114,33 @@
|
|||||||
buildPack: application.buildPack,
|
buildPack: application.buildPack,
|
||||||
deploymentType: application.deploymentType
|
deploymentType: application.deploymentType
|
||||||
});
|
});
|
||||||
application = {
|
const baseImageCorrect = data.baseImages.filter(
|
||||||
...application,
|
(image: any) => image.value === application.baseImage
|
||||||
...data
|
);
|
||||||
};
|
if (baseImageCorrect.length === 0) {
|
||||||
|
application.baseImage = data.baseImage;
|
||||||
|
}
|
||||||
|
application.baseImages = data.baseImages;
|
||||||
|
|
||||||
|
const baseBuildImageCorrect = data.baseBuildImages.filter(
|
||||||
|
(image: any) => image.value === application.baseBuildImage
|
||||||
|
);
|
||||||
|
if (baseBuildImageCorrect.length === 0) {
|
||||||
|
application.baseBuildImage = data.baseBuildImage;
|
||||||
|
}
|
||||||
|
application.baseBuildImages = data.baseBuildImages;
|
||||||
|
if (application.deploymentType === 'static' && application.port !== '80') {
|
||||||
|
application.port = data.port;
|
||||||
|
}
|
||||||
|
if (application.deploymentType === 'node' && application.port === '80') {
|
||||||
|
application.port = data.port;
|
||||||
|
}
|
||||||
|
if (application.deploymentType === 'static' && !application.publishDirectory) {
|
||||||
|
application.publishDirectory = data.publishDirectory;
|
||||||
|
}
|
||||||
|
if (application.deploymentType === 'node' && application.publishDirectory === 'out') {
|
||||||
|
application.publishDirectory = data.publishDirectory;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
async function changeSettings(name: any) {
|
async function changeSettings(name: any) {
|
||||||
if (name === 'debug') {
|
if (name === 'debug') {
|
||||||
@ -631,9 +654,7 @@
|
|||||||
bind:value={application.port}
|
bind:value={application.port}
|
||||||
placeholder="{$t('forms.default')}: 'python' ? '8000' : '3000'"
|
placeholder="{$t('forms.default')}: 'python' ? '8000' : '3000'"
|
||||||
/>
|
/>
|
||||||
<Explainer
|
<Explainer text={'The port your application listens on.'} />
|
||||||
text={'The port your application listens on.'}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="grid grid-cols-2 items-center">
|
<div class="grid grid-cols-2 items-center">
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "coolify",
|
"name": "coolify",
|
||||||
"description": "An open-source & self-hostable Heroku / Netlify alternative.",
|
"description": "An open-source & self-hostable Heroku / Netlify alternative.",
|
||||||
"version": "3.8.4",
|
"version": "3.8.5",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"repository": "github:coollabsio/coolify",
|
"repository": "github:coollabsio/coolify",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user