mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-06 13:04:53 +08:00
Add apps warmup to teams dockerfile (#2116)
This commit is contained in:
parent
904ebd093f
commit
a8ae19b9cf
1 changed files with 5 additions and 4 deletions
|
@ -123,7 +123,7 @@ defmodule LivebookWeb.Hub.Edit.TeamComponent do
|
|||
</p>
|
||||
|
||||
<div id="env-code">
|
||||
<div class="flex justify-between items-center mb-2 px-2">
|
||||
<div class="flex justify-between items-end mb-1">
|
||||
<span class="text-sm text-gray-700 font-semibold"> Dockerfile </span>
|
||||
<button
|
||||
class="button-base button-gray whitespace-nowrap py-1 px-2"
|
||||
|
@ -146,7 +146,8 @@ defmodule LivebookWeb.Hub.Edit.TeamComponent do
|
|||
)
|
||||
}
|
||||
>
|
||||
<.remix_icon icon="clipboard-line" class="align-middle mr-1 text-" /> Copy source
|
||||
<.remix_icon icon="clipboard-line" class="align-middle mr-1 text-xs" />
|
||||
<span class="font-normal text-xs">Copy source</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
@ -154,7 +155,6 @@ defmodule LivebookWeb.Hub.Edit.TeamComponent do
|
|||
source_id={"offline-deployment-#{@hub.id}-source"}
|
||||
source={@dockerfile}
|
||||
language="dockerfile"
|
||||
wrap
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -356,7 +356,8 @@ defmodule LivebookWeb.Hub.Edit.TeamComponent do
|
|||
ENV LIVEBOOK_TEAMS_NAME "#{socket.assigns.hub.hub_name}"
|
||||
ENV LIVEBOOK_TEAMS_OFFLINE_KEY "#{socket.assigns.hub.org_public_key}"
|
||||
|
||||
CMD [ "/app/bin/livebook", "start" ]\
|
||||
ENV LIVEBOOK_APPS_PATH_WARMUP "manual"
|
||||
RUN /app/bin/warmup_apps.sh\
|
||||
""")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue