From 271dd9e34445d09cdf12bb91de48bb0bfa7a1125 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 6 Mar 2021 16:34:45 -0800 Subject: make debpkg: send docker output to docker.log in the host. Otherwise once the container is gone we can't figure out what happened. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bbf8fdbd8..aca6f2ee7 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ version?=$(shell grep '^[Vv]ersion:' pandoc.cabal | awk '{print $$2;}') pandoc=$(shell find dist -name pandoc -type f -exec ls -t {} \; | head -1) SOURCEFILES?=$(shell git ls-tree -r master --name-only | grep "\.hs$$") BRANCH?=master +ARCH=$(shell uname -m) DOCKERIMAGE=registry.gitlab.b-data.ch/ghc/ghc4pandoc:8.10.4 COMMIT=$(shell git rev-parse --short HEAD) TIMESTAMP=$(shell date "+%Y%m%d_%H%M") @@ -80,14 +81,15 @@ checkdocs: ! grep -q -n -e "\t" MANUAL.txt changelog.md debpkg: man/pandoc.1 - docker run -v `pwd`:/mnt \ + (docker run -v `pwd`:/mnt \ -v `pwd`/linux/artifacts:/artifacts \ -e REVISION=$(REVISION) \ -w /mnt \ --memory=0 \ + --rm \ $(DOCKERIMAGE) \ bash \ - /mnt/linux/make_artifacts.sh + /mnt/linux/make_artifacts.sh) 2>&1 > docker.log man/pandoc.1: MANUAL.txt man/pandoc.1.before man/pandoc.1.after pandoc $< -f markdown -t man -s \ -- cgit v1.2.3