Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit b39d336

Browse files
authored
Merge pull request #12 from andrewhsu/gen-man
generate man pages
2 parents 10ce75b + e14fca8 commit b39d336

23 files changed

Lines changed: 56 additions & 88 deletions

deb/Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CLI_DIR:=$(CURDIR)/../../cli
66
GITCOMMIT?=$(shell cd $(ENGINE_DIR) && git rev-parse --short HEAD)
77
VERSION?=$(shell cat $(ENGINE_DIR)/VERSION)
88
DOCKER_EXPERIMENTAL:=0
9-
CHOWN:=docker run --rm -v $(CURDIR):/v -w /v $(ALPINE) chown
9+
CHOWN:=docker run --rm -i -t -v $(CURDIR):/v -w /v $(ALPINE) chown
1010

1111
.PHONY: help clean deb ubuntu debian ubuntu-xenial ubuntu-trusty ubuntu-yakkety ubuntu-zesty debian-jessie debian-stretch debian-wheezy
1212

@@ -25,7 +25,7 @@ debian: debian-stretch debian-wheezy debian-jessie ## build all debian deb packa
2525

2626
ubuntu-xenial: ## build ubuntu xenial deb packages
2727
docker build -t debbuild-$@/$(ARCH) -f $(CURDIR)/$@/Dockerfile.$(ARCH) .
28-
docker run --rm \
28+
docker run --rm -i -t \
2929
-e VERSION=$(VERSION) \
3030
-e DOCKER_GITCOMMIT=$(GITCOMMIT) \
3131
-v $(CURDIR)/debbuild/$@:/build \
@@ -36,7 +36,7 @@ ubuntu-xenial: ## build ubuntu xenial deb packages
3636

3737
ubuntu-trusty: ## build ubuntu trusty deb packages
3838
docker build -t debbuild-$@/$(ARCH) -f $(CURDIR)/$@/Dockerfile.$(ARCH) .
39-
docker run --rm \
39+
docker run --rm -i -t \
4040
-e VERSION=$(VERSION) \
4141
-e DOCKER_GITCOMMIT=$(GITCOMMIT) \
4242
-v $(CURDIR)/debbuild/$@:/build \
@@ -47,7 +47,7 @@ ubuntu-trusty: ## build ubuntu trusty deb packages
4747

4848
ubuntu-yakkety: ## build ubuntu yakkety deb packages
4949
docker build -t debbuild-$@/$(ARCH) -f $(CURDIR)/$@/Dockerfile.$(ARCH) .
50-
docker run --rm \
50+
docker run --rm -i -t \
5151
-e VERSION=$(VERSION) \
5252
-e DOCKER_GITCOMMIT=$(GITCOMMIT) \
5353
-v $(CURDIR)/debbuild/$@:/build \
@@ -58,7 +58,7 @@ ubuntu-yakkety: ## build ubuntu yakkety deb packages
5858

5959
ubuntu-zesty: ## build ubuntu zesty deb packages
6060
docker build -t debbuild-$@/$(ARCH) -f $(CURDIR)/$@/Dockerfile.$(ARCH) .
61-
docker run --rm \
61+
docker run --rm -i -t \
6262
-e VERSION=$(VERSION) \
6363
-e DOCKER_GITCOMMIT=$(GITCOMMIT) \
6464
-v $(CURDIR)/debbuild/$@:/build \
@@ -69,7 +69,7 @@ ubuntu-zesty: ## build ubuntu zesty deb packages
6969

7070
debian-jessie: ## build debian jessie deb packages
7171
docker build -t debbuild-$@/$(ARCH) -f $(CURDIR)/$@/Dockerfile.$(ARCH) .
72-
docker run --rm \
72+
docker run --rm -i -t \
7373
-e VERSION=$(VERSION) \
7474
-e DOCKER_GITCOMMIT=$(GITCOMMIT) \
7575
-v $(CURDIR)/debbuild/$@:/build \
@@ -80,7 +80,7 @@ debian-jessie: ## build debian jessie deb packages
8080

8181
debian-stretch: ## build debian stretch deb packages
8282
docker build -t debbuild-$@/$(ARCH) -f $(CURDIR)/$@/Dockerfile.$(ARCH) .
83-
docker run --rm \
83+
docker run --rm -i -t \
8484
-e VERSION=$(VERSION) \
8585
-e DOCKER_GITCOMMIT=$(GITCOMMIT) \
8686
-v $(CURDIR)/debbuild/$@:/build \
@@ -91,7 +91,7 @@ debian-stretch: ## build debian stretch deb packages
9191

9292
debian-wheezy: ## build debian wheezy deb packages
9393
docker build -t debbuild-$@/$(ARCH) -f $(CURDIR)/$@/Dockerfile.$(ARCH) .
94-
docker run --rm \
94+
docker run --rm -i -t \
9595
-e VERSION=$(VERSION) \
9696
-e DOCKER_GITCOMMIT=$(GITCOMMIT) \
9797
-v $(CURDIR)/debbuild/$@:/build \

deb/common/rules

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ override_dh_gencontrol:
1212

1313
override_dh_auto_build:
1414
cd engine && ./hack/make.sh dynbinary
15-
LDFLAGS='' make -C cli VERSION=$(VERSION) GITCOMMIT=$(DOCKER_GITCOMMIT) dynbinary
16-
# ./man/md2man-all.sh runs outside the build container (if at all), since we don't have go-md2man here
15+
LDFLAGS='' make -C cli VERSION=$(VERSION) GITCOMMIT=$(DOCKER_GITCOMMIT) dynbinary manpages
1716

1817
override_dh_auto_test:
1918
./engine/bundles/$(BUNDLE_VERSION)/dynbinary-daemon/dockerd -v

deb/debian-jessie/Dockerfile.armv7l

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools bu
88

99
ENV GO_VERSION 1.8.3
1010
RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-armv6l.tar.gz" | tar xzC /usr/local
11-
ENV PATH $PATH:/usr/local/go/bin
12-
1311
ENV GOPATH /go
14-
12+
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
1513
ENV DOCKER_BUILDTAGS apparmor pkcs11 selinux
1614
ENV RUNC_BUILDTAGS apparmor selinux
1715

deb/debian-jessie/Dockerfile.x86_64

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools bu
88

99
ENV GO_VERSION 1.8.3
1010
RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
11-
ENV PATH $PATH:/usr/local/go/bin
12-
1311
ENV GOPATH /go
14-
12+
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
1513
ENV DOCKER_BUILDTAGS apparmor pkcs11 selinux
1614
ENV RUNC_BUILDTAGS apparmor selinux
1715

deb/debian-stretch/Dockerfile.armv7l

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools bu
88

99
ENV GO_VERSION 1.8.3
1010
RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-armv6l.tar.gz" | tar xzC /usr/local
11-
ENV PATH $PATH:/usr/local/go/bin
12-
1311
ENV GOPATH /go
14-
12+
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
1513
ENV DOCKER_BUILDTAGS apparmor pkcs11 seccomp selinux
1614
ENV RUNC_BUILDTAGS apparmor seccomp selinux
1715

deb/debian-stretch/Dockerfile.x86_64

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools bu
88

99
ENV GO_VERSION 1.8.3
1010
RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
11-
ENV PATH $PATH:/usr/local/go/bin
12-
1311
ENV GOPATH /go
14-
12+
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
1513
ENV DOCKER_BUILDTAGS apparmor pkcs11 seccomp selinux
1614
ENV RUNC_BUILDTAGS apparmor seccomp selinux
1715

deb/debian-wheezy/Dockerfile.armv7l

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ RUN apt-get update && apt-get install -y apparmor bash-completion build-essenti
1010

1111
ENV GO_VERSION 1.8.3
1212
RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-armv6l.tar.gz" | tar xzC /usr/local
13-
ENV PATH $PATH:/usr/local/go/bin
14-
1513
ENV GOPATH /go
16-
14+
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
1715
ENV DOCKER_BUILDTAGS apparmor pkcs11 selinux
1816
ENV RUNC_BUILDTAGS apparmor selinux
1917

deb/debian-wheezy/Dockerfile.x86_64

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ RUN apt-get update && apt-get install -y apparmor bash-completion build-essenti
1010

1111
ENV GO_VERSION 1.8.3
1212
RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
13-
ENV PATH $PATH:/usr/local/go/bin
14-
1513
ENV GOPATH /go
16-
14+
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
1715
ENV DOCKER_BUILDTAGS apparmor pkcs11 selinux
1816
ENV RUNC_BUILDTAGS apparmor selinux
1917

deb/ubuntu-trusty/Dockerfile.armv7l

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools bu
44

55
ENV GO_VERSION 1.8.3
66
RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-armv6l.tar.gz" | tar xzC /usr/local
7-
ENV PATH $PATH:/usr/local/go/bin
8-
97
ENV GOPATH /go
10-
8+
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
119
ENV DOCKER_BUILDTAGS apparmor pkcs11 selinux
1210
ENV RUNC_BUILDTAGS apparmor selinux
1311

deb/ubuntu-trusty/Dockerfile.x86_64

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools bu
44

55
ENV GO_VERSION 1.8.3
66
RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
7-
ENV PATH $PATH:/usr/local/go/bin
8-
97
ENV GOPATH /go
10-
8+
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
119
ENV DOCKER_BUILDTAGS apparmor pkcs11 selinux
1210
ENV RUNC_BUILDTAGS apparmor selinux
1311

0 commit comments

Comments
 (0)