Dockerfile
· 180 B · Docker
Raw
FROM ghcr.io/dsseng/osmocom:latest
RUN apt update && apt install -y --no-install-recommends uhd-host socat && apt clean autoclean && apt autoremove --yes
RUN uhd_images_downloader
| 1 | FROM ghcr.io/dsseng/osmocom:latest |
| 2 | |
| 3 | RUN apt update && apt install -y --no-install-recommends uhd-host socat && apt clean autoclean && apt autoremove --yes |
| 4 | RUN uhd_images_downloader |
create.sh
· 2.0 KiB · Bash
Raw
osmo_image="ghcr.io/dsseng/osmocom-usrp-fw:latest"
osmo_config_dir="/tmp/shared/conf"
osmo_data_dir="/tmp/osmo-db"
osmo_tmp_dir="/tmp/osmocom-tmp"
docker run -d --name osmo-control $osmo_image socat TCP4-LISTEN:8889,fork TCP4:127.0.0.1:4258
docker 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
docker 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
docker 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
docker 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
docker 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
docker 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
docker 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
docker 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
docker 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
docker 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
| 1 | osmo_image="ghcr.io/dsseng/osmocom-usrp-fw:latest" |
| 2 | osmo_config_dir="/tmp/shared/conf" |
| 3 | osmo_data_dir="/tmp/osmo-db" |
| 4 | osmo_tmp_dir="/tmp/osmocom-tmp" |
| 5 | |
| 6 | docker run -d --name osmo-control $osmo_image socat TCP4-LISTEN:8889,fork TCP4:127.0.0.1:4258 |
| 7 | |
| 8 | docker 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 |
| 9 | docker 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 |
| 10 | docker 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 |
| 11 | docker 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 |
| 12 | docker 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 |
| 13 | docker 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 |
| 14 | docker 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 |
| 15 | docker 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 |
| 16 | docker 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 |
| 17 | docker 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 |
| 1 | socat TCP4-LISTEN:8889,fork TCP4:127.0.0.1:4258 |