Files
jenkins-pipelines/dockerfiles/coreutils/Dockerfile
Davlet Panech 044b6c050b archive-dir.sh: rewrite in Python
Old script was slow and didn't preserve hardlinks within the source set.

This script doesn't link files that are identical within the source set,
ie same checksum & attributes, but different inode. It can only link
such files to similar files from older builds. This deficiency will be
addressed in a separate commit.

TESTS
===================
* Manually test various input directories, including:
  - a directory that contains each type of file (regular, devices,
    sockets, symlinks, etc)
  - old index files with spaces in file names
* Given a build with a dozen or so historical builds,
  copied the "aptly" directory and compared timing and destination
  directory size before/after this patch:
  - old script: time=4m13s size=56.0G
  - new script: time=14s   size=6.1G
* Run a Jenkins build that rebuilds one package, and doesn't
  clean/rebuild the ISO. Make sure "archive-misc" works as expected.

Change-Id: Ic8f8931c4143bc355db1ccbad56ed772c0f3081e
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
2025-07-29 15:39:38 -04:00

9 lines
186 B
Docker

FROM debian:12
RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y bsdextrautils parallel python3 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*