more uv migrations
This commit is contained in:
parent
ddb01f602a
commit
128c84a79a
@ -15,22 +15,16 @@ update_os
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt-get install -y git
|
||||
$STD apt-get install -y pip
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
msg_info "Setup Python3"
|
||||
$STD apt-get install -y \
|
||||
python3 \
|
||||
python3-dev \
|
||||
python3-pip
|
||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||
msg_ok "Setup Python3"
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
|
||||
msg_info "Installing Tautulli"
|
||||
cd /opt
|
||||
$STD git clone https://github.com/Tautulli/Tautulli.git
|
||||
$STD pip install -q -r /opt/Tautulli/requirements.txt
|
||||
$STD pip install pyopenssl
|
||||
$STD uv venv /opt/Tautulli/venv
|
||||
$STD /opt/Tautulli/venv/bin/uv pip install -r /opt/Tautulli/requirements.txt
|
||||
$STD /opt/Tautulli/venv/bin/uv pip install pyopenssl
|
||||
msg_ok "Installed Tautulli"
|
||||
|
||||
msg_info "Creating Service"
|
||||
@ -44,7 +38,7 @@ WorkingDirectory=/opt/Tautulli/
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/python3 /opt/Tautulli/Tautulli.py
|
||||
ExecStart=/opt/Tautulli/venv/bin/python /opt/Tautulli/Tautulli.py
|
||||
KillSignal=SIGINT
|
||||
TimeoutStopSec=20
|
||||
SyslogIdentifier=tautulli
|
||||
|
@ -16,7 +16,6 @@ update_os
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt-get install -y \
|
||||
python3 \
|
||||
cmake \
|
||||
g++ \
|
||||
build-essential \
|
||||
|
@ -15,9 +15,10 @@ update_os
|
||||
|
||||
msg_info "Installing Dependencies (Patience)"
|
||||
$STD apt-get install -y ffmpeg
|
||||
$STD apt-get install -y python3-pip
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
|
||||
if [[ "$CTTYPE" == "0" ]]; then
|
||||
msg_info "Setting Up Hardware Acceleration"
|
||||
$STD apt-get -y install \
|
||||
@ -33,7 +34,8 @@ if [[ "$CTTYPE" == "0" ]]; then
|
||||
fi
|
||||
|
||||
msg_info "Installing Unmanic"
|
||||
$STD pip3 install unmanic
|
||||
uv venv /opt/unmanic/venv
|
||||
/opt/unmanic/venv/bin/uv pip install unmanic
|
||||
sed -i -e 's/^sgx:x:104:$/render:x:104:root/' -e 's/^render:x:106:root$/sgx:x:106:/' /etc/group
|
||||
msg_ok "Installed Unmanic"
|
||||
|
||||
@ -47,7 +49,7 @@ StartLimitBurst=3
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/local/bin/unmanic
|
||||
ExecStart=/opt/unmanic/venv/bin/unmanic
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
|
||||
|
@ -35,8 +35,7 @@ $STD apt-get -y install --no-install-recommends \
|
||||
x11-apps
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
setup_uv
|
||||
$STD uv python install
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
NODE_VERSION="22" NODE_MODULE="yarn@latest" install_node_and_modules
|
||||
|
||||
msg_info "Installing Chromium"
|
||||
|
@ -39,13 +39,13 @@ tar xzf $RELEASE.tar.gz
|
||||
mv wger-$RELEASE /home/wger/src
|
||||
cd /home/wger/src
|
||||
$STD uv venv /home/wger/.venv
|
||||
$STD uv pip install -r requirements_prod.txt --python=/home/wger/.venv
|
||||
$STD uv pip install -e . --python=/home/wger/.venv
|
||||
$STD wger create-settings --database-path /home/wger/db/database.sqlite
|
||||
$STD /home/wger/.venv/bin/uv pip install -r requirements_prod.txt
|
||||
$STD /home/wger/.venv/bin/uv pip install -e .
|
||||
$STD /home/wger/.venv/bin/wger create-settings --database-path /home/wger/db/database.sqlite
|
||||
sed -i "s#home/wger/src/media#home/wger/media#g" /home/wger/src/settings.py
|
||||
sed -i "/MEDIA_ROOT = '\/home\/wger\/media'/a STATIC_ROOT = '/home/wger/static'" /home/wger/src/settings.py
|
||||
$STD wger bootstrap
|
||||
$STD uv python3 manage.py collectstatic
|
||||
$STD /home/wger/.venv/bin/wger bootstrap
|
||||
$STD /home/wger/.venv/bin/uv run python manage.py collectstatic
|
||||
echo "${RELEASE}" >/opt/wger_version.txt
|
||||
msg_ok "Finished setting up wger"
|
||||
|
||||
@ -89,7 +89,7 @@ After=network.target
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
ExecStart=/usr/local/bin/wger start -a 0.0.0.0 -p 3000
|
||||
ExecStart=/home/wger/.venv/bin/wger start -a 0.0.0.0 -p 3000
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
|
Loading…
x
Reference in New Issue
Block a user