build(debian): offline pip dependency installation #18
+3
-1
@@ -14,6 +14,8 @@ RUN apt-get update && apt-get install -y \
|
|||||||
fakeroot \
|
fakeroot \
|
||||||
python3 \
|
python3 \
|
||||||
python3-venv \
|
python3-venv \
|
||||||
|
python3-pip \
|
||||||
|
python3-wheel \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /build/src
|
WORKDIR /build/src
|
||||||
@@ -24,4 +26,4 @@ COPY . .
|
|||||||
|
|
||||||
RUN chmod +x release/build-deb.sh
|
RUN chmod +x release/build-deb.sh
|
||||||
|
|
||||||
CMD ["sh", "-c", "./release/build-deb.sh && mv ../*.deb /dist/"]
|
CMD ["sh", "-c", "./release/build-deb.sh && mv ../*.deb /dist/"]
|
||||||
|
|||||||
Vendored
+19
@@ -1,3 +1,22 @@
|
|||||||
|
navidrome-uploader (0.2.0) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Packaging:
|
||||||
|
- Bundle pip wheels during build for offline host installation
|
||||||
|
- Ensure debian build environment includes pip and wheel modules
|
||||||
|
* Docker:
|
||||||
|
- Implement containerized debian packaging automation scripts
|
||||||
|
* Security:
|
||||||
|
- Add MAX_CONTENT_LENGTH to prevent upload DoS vectors
|
||||||
|
* Bug Fixes:
|
||||||
|
- Fix apt purge leaving pycache and systemd directory remnants
|
||||||
|
* Frontend:
|
||||||
|
- Change Dropzone.js upstream source location
|
||||||
|
* Maintenance:
|
||||||
|
- Add the open source software MIT license
|
||||||
|
- Upstream package & dependency updates
|
||||||
|
|
||||||
|
-- Arian Nasr <arian@2ari.ca> Mon, 25 May 2026 18:31:00 -0400
|
||||||
|
|
||||||
navidrome-uploader (0.1.0-2) unstable; urgency=high
|
navidrome-uploader (0.1.0-2) unstable; urgency=high
|
||||||
|
|
||||||
* Run pip install stage as navidrome-uploader user instead of root
|
* Run pip install stage as navidrome-uploader user instead of root
|
||||||
|
|||||||
Vendored
+2
-2
@@ -8,5 +8,5 @@ Rules-Requires-Root: no
|
|||||||
|
|
||||||
Package: navidrome-uploader
|
Package: navidrome-uploader
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: ${misc:Depends}, adduser, python3, python3-venv
|
Depends: ${misc:Depends}, adduser, python3, python3-venv, python3-pip, python3-wheel
|
||||||
Description: Navidrome Web Upload Utility
|
Description: Navidrome Web Upload Utility
|
||||||
|
|||||||
Vendored
+2
-2
@@ -5,5 +5,5 @@ requirements.txt opt/navidrome-uploader/
|
|||||||
templates/* opt/navidrome-uploader/templates/
|
templates/* opt/navidrome-uploader/templates/
|
||||||
static/css/* opt/navidrome-uploader/static/css/
|
static/css/* opt/navidrome-uploader/static/css/
|
||||||
static/js/* opt/navidrome-uploader/static/js/
|
static/js/* opt/navidrome-uploader/static/js/
|
||||||
contrib/navidrome-uploader.service lib/systemd/system/navidrome-uploader.service
|
contrib/navidrome-uploader.service lib/systemd/system/
|
||||||
|
debian/wheels/* opt/navidrome-uploader/wheels/
|
||||||
|
|||||||
Vendored
+2
-2
@@ -10,8 +10,8 @@ case "$1" in
|
|||||||
chown -R "$APP_USER:$APP_USER" "$APP_DIR"
|
chown -R "$APP_USER:$APP_USER" "$APP_DIR"
|
||||||
|
|
||||||
runuser -u "$APP_USER" -- python3 -m venv "$VENV_DIR"
|
runuser -u "$APP_USER" -- python3 -m venv "$VENV_DIR"
|
||||||
runuser -u "$APP_USER" -- "$VENV_DIR/bin/pip" install --no-cache-dir --upgrade pip
|
|
||||||
runuser -u "$APP_USER" -- "$VENV_DIR/bin/pip" install --no-cache-dir -r "$APP_DIR/requirements.txt"
|
runuser -u "$APP_USER" -- "$VENV_DIR/bin/pip" install --no-cache-dir --no-index --find-links="$APP_DIR/wheels" -r "$APP_DIR/requirements.txt"
|
||||||
|
|
||||||
if command -v systemctl >/dev/null 2>&1; then
|
if command -v systemctl >/dev/null 2>&1; then
|
||||||
systemctl daemon-reload || true
|
systemctl daemon-reload || true
|
||||||
|
|||||||
Vendored
+5
@@ -3,6 +3,11 @@
|
|||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
||||||
|
|
||||||
|
override_dh_auto_build:
|
||||||
|
dh_auto_build
|
||||||
|
mkdir -p debian/wheels
|
||||||
|
python3 -m pip wheel --no-cache-dir -r requirements.txt pip -w debian/wheels
|
||||||
|
|
||||||
override_dh_install:
|
override_dh_install:
|
||||||
dh_install
|
dh_install
|
||||||
install -d debian/navidrome-uploader/etc/default/navidrome-uploader
|
install -d debian/navidrome-uploader/etc/default/navidrome-uploader
|
||||||
|
|||||||
Reference in New Issue
Block a user