mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-03-09 07:28:12 +00:00
arm testing
This commit is contained in:
73
ct/arm.sh
Normal file
73
ct/arm.sh
Normal file
@@ -0,0 +1,73 @@
|
||||
#!/usr/bin/env bash
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: MickLesk (CanbiZ)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
|
||||
# Source: https://github.com/automatic-ripping-machine/automatic-ripping-machine
|
||||
|
||||
APP="ARM"
|
||||
var_tags="${var_tags:-media;ripping;automation}"
|
||||
var_cpu="${var_cpu:-4}"
|
||||
var_ram="${var_ram:-4096}"
|
||||
var_disk="${var_disk:-16}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_unprivileged="${var_unprivileged:-0}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -d /opt/arm ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "arm" "automatic-ripping-machine/automatic-ripping-machine"; then
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop armui
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
msg_info "Backing up Data"
|
||||
cp /opt/arm/arm.yaml /opt/arm_yaml.bak
|
||||
msg_ok "Backed up Data"
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "arm" "automatic-ripping-machine/automatic-ripping-machine" "tarball"
|
||||
|
||||
msg_info "Rebuilding Python Environment"
|
||||
cd /opt/arm
|
||||
$STD uv venv /opt/arm/venv
|
||||
$STD uv pip install --python /opt/arm/venv/bin/python \
|
||||
-r <(curl -fsSL https://raw.githubusercontent.com/automatic-ripping-machine/arm-dependencies/main/requirements.txt) \
|
||||
-r requirements.txt
|
||||
msg_ok "Rebuilt Python Environment"
|
||||
|
||||
msg_info "Restoring Data"
|
||||
cp /opt/arm_yaml.bak /opt/arm/arm.yaml
|
||||
chmod +x /opt/arm/scripts/thickclient/*.sh 2>/dev/null || true
|
||||
rm -f /opt/arm_yaml.bak
|
||||
msg_ok "Restored Data"
|
||||
|
||||
msg_info "Starting Service"
|
||||
systemctl start armui
|
||||
msg_ok "Started Service"
|
||||
msg_ok "Updated successfully!"
|
||||
fi
|
||||
exit
|
||||
}
|
||||
|
||||
start
|
||||
build_container
|
||||
description
|
||||
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}"
|
||||
42
frontend/public/json/arm.json
Normal file
42
frontend/public/json/arm.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"name": "ARM",
|
||||
"slug": "arm",
|
||||
"categories": [13],
|
||||
"date_created": "2026-03-06",
|
||||
"type": "ct",
|
||||
"updateable": true,
|
||||
"privileged": true,
|
||||
"interface_port": 8080,
|
||||
"documentation": "https://github.com/automatic-ripping-machine/automatic-ripping-machine/wiki",
|
||||
"website": "https://github.com/automatic-ripping-machine/automatic-ripping-machine",
|
||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/arm.webp",
|
||||
"config_path": "/opt/arm/arm.yaml",
|
||||
"description": "Automatic Ripping Machine (ARM) automatically detects and rips Blu-rays, DVDs, and CDs. It identifies disc type, retrieves metadata, and handles transcoding with MakeMKV and HandBrake.",
|
||||
"install_methods": [
|
||||
{
|
||||
"type": "default",
|
||||
"script": "ct/arm.sh",
|
||||
"resources": {
|
||||
"cpu": 4,
|
||||
"ram": 4096,
|
||||
"hdd": 16,
|
||||
"os": "Debian",
|
||||
"version": "12"
|
||||
}
|
||||
}
|
||||
],
|
||||
"default_credentials": {
|
||||
"username": "admin",
|
||||
"password": "password"
|
||||
},
|
||||
"notes": [
|
||||
{
|
||||
"text": "Optical drive passthrough to the LXC container is required. Configure device mappings in the Proxmox container settings.",
|
||||
"type": "warning"
|
||||
},
|
||||
{
|
||||
"text": "Navigate to http://IP:8080/setup on first launch to complete initial setup. Default credentials: admin / password.",
|
||||
"type": "info"
|
||||
}
|
||||
]
|
||||
}
|
||||
116
install/arm-install.sh
Normal file
116
install/arm-install.sh
Normal file
@@ -0,0 +1,116 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: MickLesk (CanbiZ)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
|
||||
# Source: https://github.com/automatic-ripping-machine/automatic-ripping-machine
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt install -y \
|
||||
abcde \
|
||||
at \
|
||||
build-essential \
|
||||
cdparanoia \
|
||||
default-jre-headless \
|
||||
eject \
|
||||
ffmpeg \
|
||||
flac \
|
||||
glyrc \
|
||||
handbrake-cli \
|
||||
imagemagick \
|
||||
libavcodec-dev \
|
||||
libavcodec-extra \
|
||||
libcurl4-openssl-dev \
|
||||
libdiscid-dev \
|
||||
libexpat1-dev \
|
||||
libffi-dev \
|
||||
libgl1-mesa-dev \
|
||||
libssl-dev \
|
||||
lsdvd \
|
||||
pkg-config \
|
||||
qtbase5-dev \
|
||||
zlib1g-dev
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
|
||||
msg_info "Building MakeMKV (Patience)"
|
||||
MAKEMKV_VER=$(curl -sL https://www.makemkv.com/download/ | grep -oP 'makemkv-bin-\K[0-9]+\.[0-9]+\.[0-9]+' | head -1)
|
||||
cd /tmp
|
||||
$STD curl -fsSL -o makemkv-oss.tar.gz "https://www.makemkv.com/download/makemkv-oss-${MAKEMKV_VER}.tar.gz"
|
||||
$STD curl -fsSL -o makemkv-bin.tar.gz "https://www.makemkv.com/download/makemkv-bin-${MAKEMKV_VER}.tar.gz"
|
||||
tar xf makemkv-oss.tar.gz
|
||||
tar xf makemkv-bin.tar.gz
|
||||
cd "makemkv-oss-${MAKEMKV_VER}"
|
||||
$STD ./configure
|
||||
$STD make -j"$(nproc)"
|
||||
$STD make install
|
||||
cd "/tmp/makemkv-bin-${MAKEMKV_VER}"
|
||||
mkdir -p tmp
|
||||
echo "accepted" >tmp/eula_accepted
|
||||
$STD make install
|
||||
ldconfig
|
||||
cd /
|
||||
rm -rf /tmp/makemkv-*
|
||||
msg_ok "Built MakeMKV ${MAKEMKV_VER}"
|
||||
|
||||
fetch_and_deploy_gh_release "arm" "automatic-ripping-machine/automatic-ripping-machine" "tarball"
|
||||
|
||||
msg_info "Setting up Python Environment"
|
||||
cd /opt/arm
|
||||
$STD uv venv /opt/arm/venv
|
||||
$STD uv pip install --python /opt/arm/venv/bin/python \
|
||||
-r <(curl -fsSL https://raw.githubusercontent.com/automatic-ripping-machine/arm-dependencies/main/requirements.txt) \
|
||||
-r requirements.txt
|
||||
msg_ok "Set up Python Environment"
|
||||
|
||||
msg_info "Configuring Application"
|
||||
cp /opt/arm/setup/arm.yaml /opt/arm/arm.yaml
|
||||
cp /opt/arm/setup/.abcde.conf /etc/.abcde.conf
|
||||
mkdir -p /etc/arm/config
|
||||
ln -sf /opt/arm/arm.yaml /etc/arm/config/arm.yaml
|
||||
ln -sf /etc/.abcde.conf /etc/arm/config/abcde.conf
|
||||
|
||||
mkdir -p /home/arm/{logs/progress,media/{transcode,completed,raw},db}
|
||||
|
||||
for i in $(seq 0 4); do
|
||||
mkdir -p "/mnt/dev/sr${i}"
|
||||
grep -qF "/dev/sr${i}" /etc/fstab || echo "/dev/sr${i} /mnt/dev/sr${i} udf,iso9660 defaults,users,utf8,ro,noauto 0 0" >>/etc/fstab
|
||||
done
|
||||
|
||||
chmod +x /opt/arm/scripts/thickclient/*.sh 2>/dev/null || true
|
||||
cp /opt/arm/setup/51-automatic-ripping-machine-venv.rules /etc/udev/rules.d/
|
||||
sed -i "s|/bin/su -l.*-s /bin/bash.*|/opt/arm/scripts/thickclient/arm_venv_wrapper.sh %k\"|" /etc/udev/rules.d/51-automatic-ripping-machine-venv.rules 2>/dev/null || true
|
||||
msg_ok "Configured Application"
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<EOF >/etc/systemd/system/armui.service
|
||||
[Unit]
|
||||
Description=ARM Web UI Service
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/arm
|
||||
ExecStart=/opt/arm/venv/bin/python3 /opt/arm/arm/runui.py
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now atd armui
|
||||
msg_ok "Created Service"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
Reference in New Issue
Block a user