aboutsummaryrefslogtreecommitdiffstats
path: root/debian-jessie-buildslave/Dockerfile
blob: 158e19e714329f28fd6a16a55f65aa380d813041 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
ARG	USER
FROM	$USER/debian-jessie-build

MAINTAINER Harald Welte <laforge@gnumonks.org>

RUN	dpkg --add-architecture i386 && \
	apt-get update && \
	apt-get install -y --no-install-recommends \
		asciidoc \
		bc \
		bzip2 \
		coccinelle \
		dahdi-source \
		htop \
		mscgen \
		openssh-client \
		python \
		python-pip \
		python3 \
		python-minimal \
		rsync \
		sudo \
		texinfo \
		unzip && \
	apt-get clean

RUN	useradd -m --uid=1000 build && \
	echo "build ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/build && \
	chmod 0440 /etc/sudoers.d/build && \
	mkdir /build && \
	chown build:build /build

RUN	pip install timeout_decorator && \
	pip install bumpversion

# first add this file to invalidate cache each time osmo-python-tests.git is updated
ADD	http://git.osmocom.org/python/osmo-python-tests/patch /tmp/commit-osmo-python-tests
RUN	git clone git://git.osmocom.org/python/osmo-python-tests && \
	cd osmo-python-tests && \
	python2 ./setup.py install