mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-15 17:34:41 +08:00
Deprecate warmup_apps.sh in favour of warmup_apps (#2305)
This commit is contained in:
parent
fa3147c3a7
commit
08ce037ed7
5 changed files with 10 additions and 4 deletions
|
@ -190,7 +190,7 @@ The following environment variables can be used to configure Livebook on boot:
|
|||
* LIVEBOOK_APPS_PATH_WARMUP - sets the warmup mode for apps deployed from
|
||||
LIVEBOOK_APPS_PATH. Must be either "auto" (apps are warmed up on Livebook
|
||||
startup, right before app deployment) or "manual" (apps are warmed up when
|
||||
building the Docker image; to do so add "RUN /app/bin/warmup_apps.sh" to
|
||||
building the Docker image; to do so add "RUN /app/bin/warmup_apps" to
|
||||
your image). Defaults to "auto".
|
||||
|
||||
* LIVEBOOK_BASE_URL_PATH - sets the base url path the web application is
|
||||
|
|
|
@ -113,7 +113,7 @@ defmodule Livebook.Hubs.Dockerfile do
|
|||
|
||||
apps_warmup = """
|
||||
# Cache apps setup at build time
|
||||
RUN /app/bin/warmup_apps.sh
|
||||
RUN /app/bin/warmup_apps
|
||||
"""
|
||||
|
||||
random_secret_key_base = Livebook.Utils.random_secret_key_base()
|
||||
|
|
4
rel/server/overlays/bin/warmup_apps
Executable file
4
rel/server/overlays/bin/warmup_apps
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd -P -- "$(dirname -- "$0")"
|
||||
exec ./livebook eval Livebook.Release.warmup_apps
|
|
@ -1,4 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "Using warmup_apps.sh is deprecated. Please use warmup_apps instead."
|
||||
|
||||
cd -P -- "$(dirname -- "$0")"
|
||||
exec ./livebook eval Livebook.Release.warmup_apps
|
||||
|
|
|
@ -31,7 +31,7 @@ defmodule Livebook.Hubs.DockerfileTest do
|
|||
COPY notebook.livemd /apps/
|
||||
|
||||
# Cache apps setup at build time
|
||||
RUN /app/bin/warmup_apps.sh
|
||||
RUN /app/bin/warmup_apps
|
||||
"""
|
||||
|
||||
# With secrets
|
||||
|
@ -113,7 +113,7 @@ defmodule Livebook.Hubs.DockerfileTest do
|
|||
COPY notebook.livemd /apps/
|
||||
|
||||
# Cache apps setup at build time
|
||||
RUN /app/bin/warmup_apps.sh
|
||||
RUN /app/bin/warmup_apps
|
||||
"""
|
||||
|
||||
# With secrets
|
||||
|
|
Loading…
Add table
Reference in a new issue