test -f build/$TYPE/$dist && sudo rm -fr build/$TYPE/$dist
mkdir -p build/$TYPE
cp -a deb-src build/$TYPE/$dist
- cp ${ID_DEB_BUILD}/in-docker.sh build/$TYPE/$dist
+ cp ${ID_DEB_BUILD}/in-docker-deb.sh build/$TYPE/$dist
done
}
for dist in ${DISTS}; do
cd build/$TYPE/$dist
echo "FROM $TYPE:$dist" >Dockerfile
+ echo "ENV DEBIAN_FRONTEND noninteractive" >>Dockerfile
echo 'RUN apt-get update && apt-get -q install -y wget devscripts equivs' >>Dockerfile
echo 'RUN wget -q -O - http://ftp.indexdata.dk/debian/indexdata.asc|apt-key add -' >>Dockerfile
echo "RUN echo \"deb http://ftp.indexdata.dk/$TYPE $dist main\" >/etc/apt/sources.list.d/indexdata.list" >>Dockerfile
docker build -t indexdata-build-$TYPE:$dist .
echo -n "$TYPE $dist "
- docker run --rm -v "$PWD:/build" -w /build/$PRODUCT-$VERSION indexdata-build-$TYPE:$dist ../in-docker.sh >log 2>&1
+ docker run --rm -v "$PWD:/build" -w /build/$PRODUCT-$VERSION indexdata-build-$TYPE:$dist ../in-docker-deb.sh >log 2>&1
if test $? -eq 0; then
echo Done
else
--- /dev/null
+#!/bin/sh
+# in-docker.sh
+
+set -x
+DEBIAN_FRONTEND=noninteractive
+export DEBIAN_FRONTEND
+
+# we want the newest Index Data packages
+apt-get update
+mk-build-deps
+dpkg -i *-build-deps_*_all.deb || apt-get -q install -f -y
+rm *-build-deps_*_all.deb
+dpkg-buildpackage -rfakeroot
+RET=$?
+
+exit $RET
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation: 4
+# sh-basic-offset: 4
+# End:
+
+++ /dev/null
-#!/bin/sh
-# in-docker.sh
-
-set -x
-DEBIAN_FRONTEND=noninteractive
-export DEBIAN_FRONTEND
-
-# we want the newest Index Data packages
-apt-get update
-mk-build-deps
-dpkg -i *-build-deps_*_all.deb || apt-get -q install -f -y
-rm *-build-deps_*_all.deb
-dpkg-buildpackage -rfakeroot
-RET=$?
-
-exit $RET
-
-# Local Variables:
-# mode:shell-script
-# sh-indentation: 4
-# sh-basic-offset: 4
-# End:
-