diff --git a/apps/api/src/lib/docker.ts b/apps/api/src/lib/docker.ts index dff59b7db..a4d36b7fc 100644 --- a/apps/api/src/lib/docker.ts +++ b/apps/api/src/lib/docker.ts @@ -87,6 +87,9 @@ export async function removeContainer({ await executeDockerCmd({ dockerId, command: `docker stop -t 0 ${id}` }) await executeDockerCmd({ dockerId, command: `docker rm ${id}` }) } + if (JSON.parse(stdout).Status === 'exited') { + await executeDockerCmd({ dockerId, command: `docker rm ${id}` }) + } } catch (error) { throw error; } diff --git a/apps/ui/src/routes/applications/[id]/__layout.svelte b/apps/ui/src/routes/applications/[id]/__layout.svelte index 64f8a4ea6..dc51e0185 100644 --- a/apps/ui/src/routes/applications/[id]/__layout.svelte +++ b/apps/ui/src/routes/applications/[id]/__layout.svelte @@ -272,14 +272,13 @@ > {#if $status.application.overallStatus === 'degraded' && application.buildPack !== 'compose'} Application Error - Application exited with an error! {/if} {#if $status.application.initialLoading} {:else if $status.application.overallStatus === 'healthy'} - - {#if application.buildPack !== 'compose'} - -{/if} + + {#if application.buildPack !== 'compose'} + + {/if} + {/if} {/if} {#if $location && $status.application.overallStatus === 'healthy'} diff --git a/apps/ui/src/routes/applications/[id]/configuration/buildpack.svelte b/apps/ui/src/routes/applications/[id]/configuration/buildpack.svelte index da0b15974..37e18a24d 100644 --- a/apps/ui/src/routes/applications/[id]/configuration/buildpack.svelte +++ b/apps/ui/src/routes/applications/[id]/configuration/buildpack.svelte @@ -102,10 +102,8 @@ : { Authorization: `Bearer ${$appSession.tokens.gitlab}` }; - if (isPublicRepository) { - return; - } - const url = isPublicRepository ? `` : `/v4/projects/${projectId}/repository/tree`; + + const url = isPublicRepository ? `/projects/${projectId}/repository/tree` : `/v4/projects/${projectId}/repository/tree`; const files = await get(`${apiUrl}${url}`, { ...headers }); diff --git a/apps/ui/src/routes/index.svelte b/apps/ui/src/routes/index.svelte index f23e74f48..1cd83bfe0 100644 --- a/apps/ui/src/routes/index.svelte +++ b/apps/ui/src/routes/index.svelte @@ -237,6 +237,7 @@ (application.id && application.id.toLowerCase().includes($search.toLowerCase())) || (application.name && application.name.toLowerCase().includes($search.toLowerCase())) || (application.fqdn && application.fqdn.toLowerCase().includes($search.toLowerCase())) || + (application.dockerComposeConfiguration && application.dockerComposeConfiguration.toLowerCase().includes($search.toLowerCase())) || (application.repository && application.repository.toLowerCase().includes($search.toLowerCase())) || (application.buildpack &&