Make client simulator use single cert/key pair with mac
being taken from predefind macs list. This makes it easier
to use simulator, as it doesn't depend upon a big list
of certificates that are expected to match simulated MAC
and so on.
Fixup some python imports to not use relative import,
but rather istruct makefile to pass python path var
that includes relative path.
This is a change required for following commits that
bring automated testing using this simulator.
Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
This change makes it possibly to fire make all / make run
without any additional prerequisites required.
It instructs Makefile to launch docker compose for thirdparty
services, as well as instructs CGW container to communicate
with newly created containers.
Also generates self-signed certs, in case if these are missing.
- Tweak docker-compose files for thirdparty services to resign
in a cgw-dedicated network, and use hostnames where needed;
- Change CGW app default network to cgw-dedicated network;
- Tweak PGSQL scripts to create tables in CGW DB, as well
as change ownership to them.
Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
Currently, schema validator panics because sync func is called
within async context.
Temporary W/A to at least overcome issue at least temporarily,
up untill refactoring enforced.
Also add RUST_BACKTRACE=1 to the run_cgw to enable tracing
by default (if launched through helper script).
Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
Change current behavior of CGW to <disable> the
TopoMap feature by default, as it's current
implementation is very unstable with high
number of devices sending their state info data.
Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
To disable the feature, the CGW_FEATURE_TOPOMAP_DISABLE should
be exported (value doesn't matter);
To enabled it back, the ENV var CGW_FEATURE_TOPOMAP_DISABLE
should be unset:
$ unset CGW_FEATURE_TOPOMAP_DISABLE
Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
- Use special build-env docker image that uses local project
directory (volume mount) to speedup build.
- Implement cgw-img (docker image) generation.
- Track cgw-img tag based on commit.
Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
- Update readme;
- Add run script that helps running cgw;
(utilizes enviroment variables for starting app);
- Add makefile that will be used for building app
(build, deploy, run, run tests etc)
Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
Change-Id: I5b72e35a121afa95f3102efad8f1748995910a76