File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 7
7
# { "builder": {"Entitlements": {"security-insecure": true }} }
8
8
# ```
9
9
# ```
10
- # DOCKER_BUILDKIT=1 docker build --allow security.insecure -t IMAGE_NAME /path/to/pgpm
10
+ # DOCKER_BUILDKIT=1 docker build --allow security.insecure -t IMAGE_NAME .
11
11
# ```
12
12
13
13
# This Dockerfile is used to build a Debian image, which includes pbuilder and
21
21
VOLUME /proc
22
22
ARG DEBIAN_FRONTEND=noninteractive
23
23
RUN apt update
24
- RUN apt install -y build-essential pbuilder fakeroot fakechroot
24
+ RUN apt install -y build-essential pbuilder fakeroot fakechroot vim ripgrep
25
25
RUN echo 'MIRRORSITE=http://deb.debian.org/debian' > /etc/pbuilderrc
26
26
RUN echo 'AUTO_DEBSIGN=${AUTO_DEBSIGN:-no}' > /root/.pbuilderrc
27
27
RUN echo 'HOOKDIR=/var/cache/pbuilder/hooks' >> /root/.pbuilderrc
28
- RUN --security=insecure pbuilder create
28
+ RUN --security=insecure pbuilder create --no-targz
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ def build_local_image
140
140
# base image inside the container (along with some other necessary
141
141
# packages) and saves chroot base image with these changes.
142
142
puts " Updating chroot image..."
143
- system ( "podman exec -w /root pgpm-deb-tmp /bin/bash -c 'fakeroot pbuilder execute --save-after-exec ./pbuilder_install_script.sh'" )
143
+ system ( "podman exec -w /root pgpm-deb-tmp /bin/bash -c 'fakeroot pbuilder execute --no-targz -- save-after-exec ./pbuilder_install_script.sh'" )
144
144
145
145
# Exiting -- most likely error occurred because we cannot find the same
146
146
# postgresql version in the Debian repository. The bash script
@@ -203,7 +203,7 @@ def run_build(pkg_type = :versioned)
203
203
204
204
cmds = [ ]
205
205
cmds << "dpkg-buildpackage --build=source -d" # -d flag helps with dependencies error
206
- cmds << "fakeroot pbuilder build ../#{ dsc_fn } "
206
+ cmds << "fakeroot pbuilder build --no-targz ../#{ dsc_fn } "
207
207
cmds << "mv /var/cache/pbuilder/result/#{ deb_fn } /root/pgpm/out/"
208
208
209
209
puts " Building package with pbuilder..."
You can’t perform that action at this time.
0 commit comments