docker-playground/osmo-cn-latest
Pau Espin 78ae9377a7 common: Automatize UPSTREAM_DISTRO name based on image name
Similar to what is already done with DISTRO, which points to given image
of ours based on name. This time we do the same with upstream images,
such as debian:stretch or centos:centos8.

This way, for instance calling docker_images_require
"osmo-bsc-latest-centos8" would try to build the
osmo-bsc-latest/Dockerfile file starting from a centos8 image.

Change-Id: I33cb21aa024396974559fd98f9f3c64e2c351eda
2020-12-01 11:46:20 +00:00
..
runit osmo-cn-latest: Let osmo-hlr upgrade the db scheme 2019-07-24 17:35:04 +02:00
.release Add first osmo-cn-latest image 2019-03-28 13:22:22 +01:00
Dockerfile common: Automatize UPSTREAM_DISTRO name based on image name 2020-12-01 11:46:20 +00:00
Makefile Add first osmo-cn-latest image 2019-03-28 13:22:22 +01:00
README osmo-cn-latest: Clarify steps for provisioning 2019-03-28 13:22:22 +01:00
Release.key update OBS Release.key; the old one expired today. 2020-03-30 18:06:58 +02:00
osmo-ggsn.cfg Add first osmo-cn-latest image 2019-03-28 13:22:22 +01:00
osmo-hlr.cfg Add first osmo-cn-latest image 2019-03-28 13:22:22 +01:00
osmo-mgw.cfg Add first osmo-cn-latest image 2019-03-28 13:22:22 +01:00
osmo-msc.cfg osmo-cn-latest: Add default osmo-msc.cfg 2019-03-28 13:22:22 +01:00
osmo-msc.cfg.base osmo-cn-latest: Use osmo-config-merge to configure the MSC 2019-03-28 13:22:22 +01:00
osmo-sgsn.cfg Add first osmo-cn-latest image 2019-03-28 13:22:22 +01:00
osmo-stp.cfg Add first osmo-cn-latest image 2019-03-28 13:22:22 +01:00
provision-hlr.py osmo-cn-latest: Rename the script to provision the hlr 2019-03-28 13:22:22 +01:00
run.sh Add first osmo-cn-latest image 2019-03-28 13:22:22 +01:00

README

You need a csv with the simcard data and osmo-config-merge needs to be in your
path.

To create hlr.db and change the mcc/mnc run:
./provision_hlr.py --mcc 901 --mnc 23 source.csv

This will create the hlr.db and a simcards.csv where the first digits of the
IMSI will be changed to match the MCC/MNC. In order to reprogram the IMSIs of
the SIM cards run pySim-prog:

./pySim-prog.py -p 0 -t sysmoUSIM-SJS1 --source=csv --read-csv=simcards.csv --read-iccid

This is only needed if the mcc/mnc options are used.