Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions deb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ ubuntu-xenial: ## build ubuntu xenial deb packages
-v $(CLI_DIR):/cli \
debbuild-$@/$(ARCH)
$(CHOWN) -R $(shell id -u):$(shell id -g) debbuild/$@
docker run --rm \
-v $(CURDIR)/:/v \
-v $(CURDIR)/debbuild/$@:/build \
-w /v \
--entrypoint ./test_install \
debbuild-$@/$(ARCH) \
/build/*.deb

ubuntu-trusty: ## build ubuntu trusty deb packages
docker build -t debbuild-$@/$(ARCH) -f $(CURDIR)/$@/Dockerfile.$(ARCH) .
Expand All @@ -44,6 +51,13 @@ ubuntu-trusty: ## build ubuntu trusty deb packages
-v $(CLI_DIR):/cli \
debbuild-$@/$(ARCH)
$(CHOWN) -R $(shell id -u):$(shell id -g) debbuild/$@
docker run --rm \
-v $(CURDIR)/:/v \
-v $(CURDIR)/debbuild/$@:/build \
-w /v \
--entrypoint ./test_install \
debbuild-$@/$(ARCH) \
/build/*.deb

ubuntu-yakkety: ## build ubuntu yakkety deb packages
docker build -t debbuild-$@/$(ARCH) -f $(CURDIR)/$@/Dockerfile.$(ARCH) .
Expand All @@ -55,6 +69,13 @@ ubuntu-yakkety: ## build ubuntu yakkety deb packages
-v $(CLI_DIR):/cli \
debbuild-$@/$(ARCH)
$(CHOWN) -R $(shell id -u):$(shell id -g) debbuild/$@
docker run --rm \
-v $(CURDIR)/:/v \
-v $(CURDIR)/debbuild/$@:/build \
-w /v \
--entrypoint ./test_install \
debbuild-$@/$(ARCH) \
/build/*.deb

ubuntu-zesty: ## build ubuntu zesty deb packages
docker build -t debbuild-$@/$(ARCH) -f $(CURDIR)/$@/Dockerfile.$(ARCH) .
Expand All @@ -66,6 +87,13 @@ ubuntu-zesty: ## build ubuntu zesty deb packages
-v $(CLI_DIR):/cli \
debbuild-$@/$(ARCH)
$(CHOWN) -R $(shell id -u):$(shell id -g) debbuild/$@
docker run --rm \
-v $(CURDIR)/:/v \
-v $(CURDIR)/debbuild/$@:/build \
-w /v \
--entrypoint ./test_install \
debbuild-$@/$(ARCH) \
/build/*.deb

debian-jessie: ## build debian jessie deb packages
docker build -t debbuild-$@/$(ARCH) -f $(CURDIR)/$@/Dockerfile.$(ARCH) .
Expand All @@ -77,6 +105,13 @@ debian-jessie: ## build debian jessie deb packages
-v $(CLI_DIR):/cli \
debbuild-$@/$(ARCH)
$(CHOWN) -R $(shell id -u):$(shell id -g) debbuild/$@
docker run --rm \
-v $(CURDIR)/:/v \
-v $(CURDIR)/debbuild/$@:/build \
-w /v \
--entrypoint ./test_install \
debbuild-$@/$(ARCH) \
/build/*.deb

debian-stretch: ## build debian stretch deb packages
docker build -t debbuild-$@/$(ARCH) -f $(CURDIR)/$@/Dockerfile.$(ARCH) .
Expand All @@ -88,6 +123,13 @@ debian-stretch: ## build debian stretch deb packages
-v $(CLI_DIR):/cli \
debbuild-$@/$(ARCH)
$(CHOWN) -R $(shell id -u):$(shell id -g) debbuild/$@
docker run --rm \
-v $(CURDIR)/:/v \
-v $(CURDIR)/debbuild/$@:/build \
-w /v \
--entrypoint ./test_install \
debbuild-$@/$(ARCH) \
/build/*.deb

debian-wheezy: ## build debian wheezy deb packages
docker build -t debbuild-$@/$(ARCH) -f $(CURDIR)/$@/Dockerfile.$(ARCH) .
Expand All @@ -99,3 +141,10 @@ debian-wheezy: ## build debian wheezy deb packages
-v $(CLI_DIR):/cli \
debbuild-$@/$(ARCH)
$(CHOWN) -R $(shell id -u):$(shell id -g) debbuild/$@
docker run --rm \
-v $(CURDIR)/:/v \
-v $(CURDIR)/debbuild/$@:/build \
-w /v \
--entrypoint ./test_install \
debbuild-$@/$(ARCH) \
/build/*.deb
7 changes: 7 additions & 0 deletions deb/test_install
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

dpkg -i $@
apt-get update && apt-get install -y -f
dpkg -i $@
docker --version
exit $?