I'm very new to Linux overall and I'm trying to find a way to build a Debian package on an Alpine docker image. It is by far the fastest I can get my pipeline to run, but unfortunately when I try to run
dpkg-deb --build I get the following error:
03:22:44 dpkg-deb: building package 'x-sync' in 'x-sync_1.0.2.deb'. 03:22:44 tar: unrecognized option: format=gnu 03:22:44 BusyBox v1.27.2 (2018-01-29 15:48:57 GMT) multi-call binary. 03:22:44 03:22:44 Usage: tar -[cxtZzJjahmvO] [-X FILE] [-T FILE] [-f TARFILE] [-C DIR] [FILE]... 03:22:44 03:22:44 Create, extract, or list files from a tar file 03:22:44 03:22:44 Operation: 03:22:44 c Create 03:22:44 x Extract 03:22:44 t List 03:22:44 f Name of TARFILE ('-' for stdin/out) 03:22:44 C Change to DIR before operation 03:22:44 v Verbose 03:22:44 Z (De)compress using compress 03:22:44 z (De)compress using gzip 03:22:44 J (De)compress using xz 03:22:44 j (De)compress using bzip2 03:22:44 a (De)compress using lzma 03:22:44 O Extract to stdout 03:22:44 h Follow symlinks 03:22:44 m Don't restore mtime 03:22:44 exclude File to exclude 03:22:44 X File with names to exclude 03:22:44 T File with names to include 03:22:44 dpkg-deb: error: subprocess tar -cf returned error exit status 1
I attempted the packaging on the following Dockerfile:
FROM alpine RUN apk add --no-cache dpkg openjdk8
Is there any way to build a Debian package on this distro that would be cross compatible with other distros, e.g. my Ubuntu dev environment?