build first set of docker container in pipline and place them in the the github registry (#142)

- added a Dockerfile for the thre containers
- added a workflow step to build and placing the container in the
registry
- added a docker-compose.yaml to use the build images
- added a docker compose to build the images locally and a script for
prebuild steps
This commit is contained in:
2023-09-24 18:32:52 +02:00
committed by GitHub
parent 5c8d20f4c2
commit 091e67de79
21 changed files with 447 additions and 47 deletions

View File

@ -58,6 +58,13 @@ def test_json_provider_get_postgres() -> None:
assert config.host == data["postgres"]["host"]
assert config.database == data["postgres"]["database"]
assert config.port == data["postgres"]["port"]
assert isinstance(str(config), str)
assert "Mongo" not in str(config)
assert "Postgre" in str(config)
assert isinstance(str(JsonFileConfigProvider("someWhere")), str)
assert str(config) in str(JsonFileConfigProvider("someWhere"))
assert "Mongo" not in str(JsonFileConfigProvider("someWhere"))
def test_json_provider_get_mongo() -> None:
@ -82,6 +89,14 @@ def test_json_provider_get_mongo() -> None:
assert config.database == data["mongo"]["database"]
assert config.port == data["mongo"]["port"]
assert isinstance(str(config), str)
assert "Mongo" in str(config)
assert "Postgre" not in str(config)
assert isinstance(str(JsonFileConfigProvider("someWhere")), str)
assert str(config) in str(JsonFileConfigProvider("someWhere"))
assert "Postgre" not in str(JsonFileConfigProvider("someWhere"))
def test_env_provider_constructor() -> None:
with patch("aki_prj23_transparenzregister.config.config_providers.os") as mock_os: