mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
fix(railpack): serialize builder bootstrap before builds
This commit is contained in:
@@ -197,7 +197,7 @@ class CleanupDocker implements ShouldBeUnique
|
||||
if (! $activeDeployment) {
|
||||
$commands[] = 'docker builder prune -af';
|
||||
// The prune fails on a stopped builder, so start it first.
|
||||
$commands[] = railpackBuilderHelperCommand(railpackBuildxMetadataVolume($server), $helperImageWithVersion, 'docker buildx inspect --bootstrap coolify-railpack >/dev/null 2>&1; docker buildx prune --builder coolify-railpack -af');
|
||||
$commands[] = railpackBuilderHelperCommand(railpackBuildxMetadataVolume($server), $helperImageWithVersion, railpackBuilderBootstrapScript().'; docker buildx prune --builder coolify-railpack -af');
|
||||
} else {
|
||||
$cleanupLog[] = [
|
||||
'command' => self::BUILD_CACHE_KEPT_LOG_COMMAND,
|
||||
|
||||
@@ -3990,7 +3990,7 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue
|
||||
." {$this->workdir}";
|
||||
|
||||
return 'DOCKER_CONFIG=/root/.docker docker buildx create --name coolify-railpack --driver docker-container 2>/dev/null || true'
|
||||
."\n".railpackBuilderLockedScript('('.$this->wrap_build_command_with_env_export($buildxBuildCommand).')');
|
||||
."\n".railpackBuilderLockedScript(railpackBuilderBootstrapScript().'; ('.$this->wrap_build_command_with_env_export($buildxBuildCommand).')');
|
||||
}
|
||||
|
||||
private function decode_railpack_config(string $config, string $source): array
|
||||
|
||||
Reference in New Issue
Block a user