llm, if Internet is available, pull extra packages for open-terminal.
This commit is contained in:
1 parent
6482dd123d
commit
40d9a7252e
1 file changed
+8
-3
@@ -529,6 +529,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
image=ghcr.io/open-webui/open-terminal:latest
|
image=ghcr.io/open-webui/open-terminal:latest
|
||||||
|
packages=""
|
||||||
|
|
||||||
# Wait for Docker to start up.
|
# Wait for Docker to start up.
|
||||||
while [ ! -S /var/run/docker.sock ]; do sleep 1; done
|
while [ ! -S /var/run/docker.sock ]; do sleep 1; done
|
||||||
@@ -547,6 +548,12 @@
|
|||||||
echo "RUN: Updating..."
|
echo "RUN: Updating..."
|
||||||
docker pull $image &
|
docker pull $image &
|
||||||
|
|
||||||
|
if curl -sf --max-time 5 -o /dev/null https://hyperling.com; then
|
||||||
|
# Internet is available, pull extra packages. useful for having
|
||||||
|
# model compile Android apps, need to verify for Flutter.
|
||||||
|
packages="xz-utils libglu1-mesa libglu1-mesa ninja-build libnotify-bin libgtk-3-dev liblzma-dev libstdc++-12-dev libc6:amd64 libstdc++6 lib32z1 libbz2-1.0 default-jdk libncurses-dev android-udev-rules"
|
||||||
|
fi
|
||||||
|
|
||||||
# Start the open-terminal program.
|
# Start the open-terminal program.
|
||||||
# https://github.com/open-webui/open-terminal#configuration
|
# https://github.com/open-webui/open-terminal#configuration
|
||||||
set -e
|
set -e
|
||||||
@@ -557,12 +564,10 @@
|
|||||||
-v {{ user_user.home }}/Code:{{ user_user.home }}/Code \
|
-v {{ user_user.home }}/Code:{{ user_user.home }}/Code \
|
||||||
-e OPEN_TERMINAL_FILE_BROWSER_ROOT={{ user_user.home }} \
|
-e OPEN_TERMINAL_FILE_BROWSER_ROOT={{ user_user.home }} \
|
||||||
-e OPEN_TERMINAL_API_KEY={{ open_terminal_key }} \
|
-e OPEN_TERMINAL_API_KEY={{ open_terminal_key }} \
|
||||||
|
-e OPEN_TERMINAL_PACKAGES="$packages" \
|
||||||
$image run --port {{ open_terminal_port }}
|
$image run --port {{ open_terminal_port }}
|
||||||
|
|
||||||
# -p {{ open_terminal_port }}:8000
|
# -p {{ open_terminal_port }}:8000
|
||||||
|
|
||||||
# This requires internet access to be successful...
|
|
||||||
#-e OPEN_TERMINAL_PACKAGES="xz-utils libglu1-mesa libglu1-mesa ninja-build libnotify-bin libgtk-3-dev liblzma-dev libstdc++-12-dev libc6:amd64 libstdc++6 lib32z1 libbz2-1.0 default-jdk libncurses-dev android-udev-rules" \
|
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | LLMs | runit | open-terminal | Script | Finish
|
- name: Workstation | Linux | Software | LLMs | runit | open-terminal | Script | Finish
|
||||||
|
|||||||
Reference in new issue
Block a user