Skip to content

Commit

Permalink
Add building in Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskuehl committed Aug 5, 2015
1 parent ad20525 commit f3535cb
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM debian:jessie

MAINTAINER Chris Kuehl <[email protected]>
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get install -y --no-install-recommends \
build-essential devscripts equivs && \
apt-get clean
WORKDIR /mnt

ENTRYPOINT mk-build-deps -i && make builddeb
23 changes: 20 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
.PHONY: build
.PHONY: build clean builddeb builddeb-docker itest_lucid itest_precise itest_trusty
build:
gcc -static -Wall -Werror -o dumb-init dumb-init.c
$(CC) -static -Wall -Werror -o dumb-init dumb-init.c

clean:
rm -rf dumb-init
rm -rf dumb-init dist

builddeb:
rm -rf dist && mkdir -p dist
debuild -us -uc -b
mv ../dumb-init_*.deb dist

builddeb-docker: docker-image
docker run -v $(PWD):/mnt dumb-init-build

docker-image:
docker build -t dumb-init-build .

itest_lucid: docker_build

itest_precise: docker_build

itest_trusty: docker_build
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Source: dumb-init
Section: utils
Priority: extra
Maintainer: Chris Kuehl <[email protected]>
Build-Depends: debhelper (>= 7), gcc
Build-Depends: debhelper (>= 7), gcc, fakeroot
Standards-Version: 3.9.6

Package: dumb-init
Expand Down

0 comments on commit f3535cb

Please sign in to comment.