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