Last active 1711709953

Revision bcdea7a24ca17093f1dd6aeb9c872e6ef5956007

Dockerfile Raw
1FROM ghcr.io/dsseng/osmocom:latest
2
3RUN apt update && apt install -y --no-install-recommends uhd-host socat && apt clean autoclean && apt autoremove --yes
4RUN uhd_images_downloader
create.sh Raw
1osmo_image="ghcr.io/dsseng/osmocom-usrp-fw:latest"
2osmo_config_dir="/tmp/shared/conf"
3osmo_data_dir="/tmp/osmo-db"
4osmo_tmp_dir="/tmp/osmocom-tmp"
5
6docker run -d --name osmo-control $osmo_image socat TCP4-LISTEN:8889,fork TCP4:127.0.0.1:4258
7
8docker run -d --net container:osmo-control -v $osmo_config_dir:/etc/osmocom-host:ro -v $osmo_tmp_dir:/tmp --name osmo-bts-trx $osmo_image /usr/bin/osmo-bts-trx -c /etc/osmocom-host/osmo-bts-trx.cfg
9docker run -d --net container:osmo-control -v $osmo_config_dir:/etc/osmocom-host:ro --name osmo-mgw $osmo_image /usr/bin/osmo-mgw -c /etc/osmocom-host/osmo-mgw.cfg
10docker run -d --net container:osmo-control -v $osmo_config_dir:/etc/osmocom-host:ro --name osmo-msc $osmo_image /usr/bin/osmo-msc -c /etc/osmocom-host/osmo-msc.cfg
11docker run -d --net container:osmo-control -v $osmo_config_dir:/etc/osmocom-host:ro --name osmo-bsc $osmo_image /usr/bin/osmo-bsc -c /etc/osmocom-host/osmo-bsc.cfg
12docker run -d --net container:osmo-control -v $osmo_config_dir:/etc/osmocom-host:ro -v $osmo_data_dir:/var/lib/osmocom --name osmo-hlr $osmo_image /usr/bin/osmo-hlr -c /etc/osmocom-host/osmo-hlr.cfg
13docker run -d --net container:osmo-control -v $osmo_config_dir:/etc/osmocom-host:ro --name osmo-stp $osmo_image /usr/bin/osmo-stp -c /etc/osmocom-host/osmo-stp.cfg
14docker run -d --net container:osmo-control -v $osmo_config_dir:/etc/osmocom-host:ro -v $osmo_tmp_dir:/tmp --name osmo-pcu $osmo_image /usr/bin/osmo-pcu -c /etc/osmocom-host/osmo-pcu.cfg
15docker run -d --net container:osmo-control -v $osmo_config_dir:/etc/osmocom-host:ro --name osmo-sgsn $osmo_image /usr/bin/osmo-sgsn -c /etc/osmocom-host/osmo-sgsn.cfg
16docker run -d --net container:osmo-control --privileged -v $osmo_config_dir:/etc/osmocom-host:ro --name osmo-ggsn $osmo_image /usr/bin/osmo-ggsn -c /etc/osmocom-host/osmo-ggsn.cfg
17docker run -d --net container:osmo-control --privileged -v /dev/bus/usb:/dev/bus/usb -v $osmo_config_dir:/etc/osmocom-host:ro --name osmo-trx-uhd $osmo_image /usr/bin/osmo-trx-uhd -C /etc/osmocom-host/osmo-trx-uhd.cfg
socat.sh Raw
1socat TCP4-LISTEN:8889,fork TCP4:127.0.0.1:4258
2
stop.sh Raw
1docker stop osmo-control osmo-bsc osmo-bts-trx osmo-ggsn osmo-hlr osmo-msc osmo-sgsn osmo-trx-uhd osmo-stp osmo-mgw osmo-pcu