Skip to content

Commit

Permalink
add local pkgs source
Browse files Browse the repository at this point in the history
  • Loading branch information
nkraetzschmar committed Oct 10, 2023
1 parent d5e831c commit 1e3609f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ RUN install -m 6755 sudo /usr/local/bin/sudo
FROM $arch/$image
WORKDIR /tmp
COPY debian-src.sources /etc/apt/sources.list.d/
COPY local-pkgs.list /etc/apt/sources.list.d/
COPY local-pkgs /etc/apt/preferences.d/
RUN mkdir /pkgs && touch /pkgs/Packages
COPY pkgs ./
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y build-essential ca-certificates debhelper devscripts git sudo yq $(awk '{ print $1 }' pkgs)
RUN apt-mark hold $(awk '{ print $1 }' pkgs)
Expand Down
3 changes: 3 additions & 0 deletions crossbuild.containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ RUN ./setup_native export $(sed 's/\$arch/'"$gnu_arch"'/' pkgs | awk '{ print $N
FROM $target_arch/$image
WORKDIR /tmp
COPY debian-src.sources /etc/apt/sources.list.d/
COPY local-pkgs.list /etc/apt/sources.list.d/
COPY local-pkgs /etc/apt/preferences.d/
RUN mkdir /pkgs && touch /pkgs/Packages
COPY pkgs ./
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y build-essential ca-certificates debhelper devscripts git yq $(awk '{ print $1 }' pkgs)
RUN apt-mark hold $(awk '{ print $1 }' pkgs)
Expand Down
3 changes: 3 additions & 0 deletions local-pkgs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Package: *
Pin: origin ""
Pin-Priority: 900
1 change: 1 addition & 0 deletions local-pkgs.list
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deb [trusted=yes] file:/pkgs /

0 comments on commit 1e3609f

Please sign in to comment.