Add apps warmup to teams dockerfile (#2116)

This commit is contained in:
Jonatan Kłosko 2023-07-26 21:05:01 +02:00 committed by GitHub
parent 904ebd093f
commit a8ae19b9cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,7 +123,7 @@ defmodule LivebookWeb.Hub.Edit.TeamComponent do
</p> </p>
<div id="env-code"> <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> <span class="text-sm text-gray-700 font-semibold"> Dockerfile </span>
<button <button
class="button-base button-gray whitespace-nowrap py-1 px-2" 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> </button>
</div> </div>
@ -154,7 +155,6 @@ defmodule LivebookWeb.Hub.Edit.TeamComponent do
source_id={"offline-deployment-#{@hub.id}-source"} source_id={"offline-deployment-#{@hub.id}-source"}
source={@dockerfile} source={@dockerfile}
language="dockerfile" language="dockerfile"
wrap
/> />
</div> </div>
</div> </div>
@ -356,7 +356,8 @@ defmodule LivebookWeb.Hub.Edit.TeamComponent do
ENV LIVEBOOK_TEAMS_NAME "#{socket.assigns.hub.hub_name}" ENV LIVEBOOK_TEAMS_NAME "#{socket.assigns.hub.hub_name}"
ENV LIVEBOOK_TEAMS_OFFLINE_KEY "#{socket.assigns.hub.org_public_key}" 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
end end