mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-22 22:58:33 +00:00
Docker updates for local AppImage build
This commit is contained in:
parent
1e8b11c38c
commit
c74d79ae11
@ -134,6 +134,12 @@ mkdir -p /tmp/build
|
|||||||
cp -rLp ~/.gnupg/. /tmp/build/.gnupg
|
cp -rLp ~/.gnupg/. /tmp/build/.gnupg
|
||||||
docker run --privileged -ti --rm -v /tmp/build:/tmp/build qpdfbuild https://github.com/jberkenbilt/qpdf -b work
|
docker run --privileged -ti --rm -v /tmp/build:/tmp/build qpdfbuild https://github.com/jberkenbilt/qpdf -b work
|
||||||
|
|
||||||
|
To build locally, omit the git arguments after qpdfbuild above and
|
||||||
|
copy the source tree into /tmp/build/qpdf.
|
||||||
|
|
||||||
|
Pass -e SKIP_TESTS=1 to docker to skip the test suite, useful for
|
||||||
|
rapid iteration.
|
||||||
|
|
||||||
Rename the AppImage in /tmp/build/qpdf/appimage/build
|
Rename the AppImage in /tmp/build/qpdf/appimage/build
|
||||||
qpdf-$version-x86_64.AppImage and move it to the release archive
|
qpdf-$version-x86_64.AppImage and move it to the release archive
|
||||||
area.
|
area.
|
||||||
|
@ -3,7 +3,7 @@ RUN apt-get update && \
|
|||||||
apt-get -y install screen autoconf git \
|
apt-get -y install screen autoconf git \
|
||||||
build-essential zlib1g-dev libjpeg-dev \
|
build-essential zlib1g-dev libjpeg-dev \
|
||||||
docbook-xsl fop xsltproc \
|
docbook-xsl fop xsltproc \
|
||||||
imagemagick wget fuse && \
|
inkscape busybox wget fuse && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
COPY entrypoint /entrypoint
|
COPY entrypoint /entrypoint
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
if [ "$SKIP_TESTS" = "1" ]; then
|
||||||
|
touch /tmp/skip-tests
|
||||||
|
fi
|
||||||
if [ $(id -u) = 0 ]; then
|
if [ $(id -u) = 0 ]; then
|
||||||
if [ ! -d /tmp/build/.gnupg ]; then
|
if [ ! -d /tmp/build/.gnupg ]; then
|
||||||
echo "/tmp/build must exist and must contain .gnupg"
|
echo "/tmp/build must exist and must contain .gnupg"
|
||||||
@ -19,4 +22,7 @@ if [ ! -d qpdf ]; then
|
|||||||
git clone "$@" qpdf
|
git clone "$@" qpdf
|
||||||
fi
|
fi
|
||||||
cd qpdf
|
cd qpdf
|
||||||
|
if [ -f /tmp/skip-tests ]; then
|
||||||
|
export SKIP_TESTS=1
|
||||||
|
fi
|
||||||
./appimage/build-appimage --sign
|
./appimage/build-appimage --sign
|
||||||
|
Loading…
x
Reference in New Issue
Block a user