-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
51 lines (41 loc) · 1.78 KB
/
Dockerfile
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
41
42
43
44
45
46
47
48
49
50
51
from ubuntu:precise
# based on https://openbsc.osmocom.org/trac/wiki/network_from_scratch
run DEBIAN_FRONTEND=noninteractive apt-get update -q -y
run DEBIAN_FRONTEND=noninteractive apt-get -q -y install curl gcc make git autoconf libtool pkg-config libdbd-sqlite3 libdbi0-dev
# oRTP, https://openbsc.osmocom.org/trac/wiki/network_from_scratch#oRTP
run cd /root && curl -O -L http://download.savannah.gnu.org/releases/linphone/ortp/sources/ortp-0.22.0.tar.gz \
&& tar xvzf ortp-0.22.0.tar.gz \
&& cd ortp-0.22.0 \
&& ./configure && make && make install \
&& ldconfig \
&& cd ..
# libosmocore, https://openbsc.osmocom.org/trac/wiki/network_from_scratch#libosmocore
run cd /root && git clone git://git.osmocom.org/libosmocore.git \
&& cd libosmocore \
&& autoreconf -i \
&& ./configure && make && make install \
&& ldconfig \
&& cd ..
# libosmo-abis, https://openbsc.osmocom.org/trac/wiki/network_from_scratch#libosmo-abis
run cd /root && git clone git://git.osmocom.org/libosmo-abis.git \
&& cd libosmo-abis \
&& git checkout -b jolly/multi-trx origin/jolly/multi-trx \
&& autoreconf -i \
&& ./configure && make && make install \
&& ldconfig \
&& cd ..
# OsmoNITB, https://openbsc.osmocom.org/trac/wiki/network_from_scratch#OsmoNITB
run cd /root && git clone git://git.osmocom.org/openbsc.git \
&& cd openbsc/openbsc/ \
&& git checkout -b jolly/testing origin/jolly/testing \
&& autoreconf -i \
&& ./configure && make && make install \
&& cd ../..
# for debugging
run DEBIAN_FRONTEND=noninteractive apt-get -q -y install telnet lsof
add open-bsc.cfg.template /root/
add utils /root/
add hardcode-external-ip.patch.template /root/
add start-nitb /usr/local/bin/
add docopt.py /usr/lib/python2.7/dist-packages/
volume ["/var/db"]