Last active 1711709953

Revision 93d49d14e4797e21867de19dc771589e3f3caba6

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 debian:bookworm /bin/bash -c "trap : TERM INT; sleep infinity & wait"
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
18