docker-playground/osmo-cn-latest
Oliver Smith effdb1a452 debian-stretch-obs-latest: new container
Move common code from osmo-*-latest to debian-stretch-obs-latest:
* add the OBS repository key
* add the OBS repository with "latest" feed
* install telnet
* invalidate the cache once the repository is updated

This is in preparation to make osmo-*-latest work with centos8,
preventing the following issues we would have without this refactoring:
* avoid need to read the repository index of both debian-stretch and
  centos8, and to invalidate the cache if either of them changes
  (instead of just the relevant one). This is currently a problem in
  osmo-*-master/Dockerfile, Id69f3eaf37f823bac0947366f27a25edd277a4cb
  will fix it there.
* no need to add boilerplate code to install the centos8 repository to
  each osmo-*-latest/Dockerfile

While at it, also remove deprecated MAINTAINER lines.

Related: OS#5049
Related: https://docs.docker.com/engine/reference/builder/#maintainer-deprecated
Change-Id: I443d52eba416ea298cc5421e280ad2f4ca59283b
2021-03-04 14:39:46 +01: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 debian-stretch-obs-latest: new container 2021-03-04 14:39:46 +01: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
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.