build: containerised build with every dependency pinned
The repository needs seven development packages plus libcurl transitives, which is where a fresh clone usually stops. The Dockerfile pins them on Debian trixie and builds the binary; README-REPRO explains the native path (start.sh already installs per-OS) and the container path, including the USB flags the sequence needs at run time.
This commit is contained in:
parent
7d65a2d2b9
commit
00e1823dc5
2 changed files with 63 additions and 0 deletions
27
Dockerfile
Normal file
27
Dockerfile
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# Build reproducible de tr4mpass con todas sus dependencias dentro de un
|
||||
# contenedor, sin tocar el sistema. Debian trixie == el host de desarrollo.
|
||||
FROM debian:trixie-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
build-essential pkg-config \
|
||||
libimobiledevice-dev libirecovery-1.0-dev libusb-1.0-0-dev libplist-dev \
|
||||
libssl-dev libcurl4-openssl-dev libssh2-1-dev \
|
||||
usbutils usbmuxd ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
# Solo lo que make necesita: Makefile, src/, include/ y tests/ (el target
|
||||
# .chip-db-canary depende de tests/chip_db_canary.c).
|
||||
COPY Makefile ./
|
||||
COPY src ./src
|
||||
COPY include ./include
|
||||
COPY tests ./tests
|
||||
|
||||
RUN make clean && make
|
||||
|
||||
# El binario queda en /build/tr4mpass.
|
||||
# Correr con acceso USB directo:
|
||||
# podman run --rm -it --privileged -v /dev/bus/usb:/dev/bus/usb tr4mpass ./tr4mpass -v
|
||||
CMD ["/bin/bash"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue