Last active 1711709953

leshe4ka's Avatar leshe4ka revised this gist 1711709953. Go to revision

1 file changed, 1 insertion, 1 deletion

socat.sh

@@ -1 +1 @@
1 - socat TCP4-LISTEN:8889,fork TCP4:127.0.0.1:4258
1 + socat TCP4-LISTEN:8889,fork TCP4:127.0.0.1:4258

leshe4ka's Avatar leshe4ka revised this gist 1711709939. Go to revision

1 file changed, 1 insertion

socat.sh(file created)

@@ -0,0 +1 @@
1 + socat TCP4-LISTEN:8889,fork TCP4:127.0.0.1:4258

leshe4ka's Avatar leshe4ka revised this gist 1711694466. Go to revision

2 files changed, 4 insertions, 4 deletions

Dockerfile

@@ -1,4 +1,4 @@
1 1 FROM ghcr.io/dsseng/osmocom:latest
2 2
3 - RUN apt update && apt install -y --no-install-recommends uhd-host && apt clean autoclean && apt autoremove --yes
4 - RUN uhd_images_downloader
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

@@ -3,7 +3,7 @@ osmo_config_dir="/tmp/shared/conf"
3 3 osmo_data_dir="/tmp/osmo-db"
4 4 osmo_tmp_dir="/tmp/osmocom-tmp"
5 5
6 - docker run -d --name osmo-control debian:bookworm /bin/bash -c "trap : TERM INT; sleep infinity & wait"
6 + docker run -d --name osmo-control $osmo_image socat TCP4-LISTEN:8889,fork TCP4:127.0.0.1:4258
7 7
8 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 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
@@ -14,4 +14,4 @@ docker run -d --net container:osmo-control -v $osmo_config_dir:/etc/osmocom-host
14 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 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 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
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

leshe4ka's Avatar leshe4ka revised this gist 1711693077. Go to revision

1 file changed, 1 insertion

stop.sh(file created)

@@ -0,0 +1 @@
1 + docker 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

leshe4ka's Avatar leshe4ka revised this gist 1711692558. Go to revision

1 file changed, 4 insertions

Dockerfile(file created)

@@ -0,0 +1,4 @@
1 + FROM ghcr.io/dsseng/osmocom:latest
2 +
3 + RUN apt update && apt install -y --no-install-recommends uhd-host && apt clean autoclean && apt autoremove --yes
4 + RUN uhd_images_downloader

leshe4ka's Avatar leshe4ka revised this gist 1711692521. Go to revision

1 file changed, 17 insertions

create.sh(file created)

@@ -0,0 +1,17 @@
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 debian:bookworm /bin/bash -c "trap : TERM INT; sleep infinity & wait"
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
Newer Older