Database initialiser for OS2mo
Project description
OS2mo Init
OS2mo Initialiser.
Build
docker build . -t os2mo-init
Which yields:
...
Successfully built ...
Successfully tagged os2mo-init:latest
After which you can run:
docker run --rm os2mo-init --help
Which yields:
Usage: __main__.py [OPTIONS]
Options:
--lora-url TEXT Address of the LoRa host [env var: LORA_URL;
default: http://localhost:8080]
--root-org-name TEXT Name of the root organisation [env var:
ROOT_ORG_NAME; default: Magenta Aps]
--municipality-code INTEGER Municipality code of the root organisation
[default: 1234]
--help Show this message and exit.
In addition to the listed environment variables, the program accepts
parameters from environment variables using the format
'OS2MO_INIT_<OPTION>'; for example 'OS2MO_INIT_MUNICIPALITY_CODE'.
Furthermore, the following environment variables are used to establish a
connection to LoRa:
CLIENT_ID [default: mo]
CLIENT_SECRET [required]
AUTH_REALM [default: lora]
AUTH_SERVER [default: http://localhost:8080/auth]
Usage
The primary usage of the tool is to initialise OS2mo's LoRa database.
docker run --rm os2mo-init --client-secret='hunter2'
Versioning
This project uses Semantic Versioning with the following strategy:
- MAJOR: Incompatible changes to existing commandline interface
- MINOR: Backwards compatible updates to commandline interface
- PATCH: Backwards compatible bug fixes
The fileformat is versioned directly, and the version is exported in the file itself.
License
- This project: MPL-2.0
This project uses REUSE for licensing. All licenses can be found in the LICENSES folder of the project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
os2mo-init-0.0.3.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file os2mo-init-0.0.3.tar.gz
.
File metadata
- Download URL: os2mo-init-0.0.3.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.9 CPython/3.9.7 Linux/5.4.0-1049-gcp
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 350dcfc597d7606befb65bf63d9a604c917aa68af79e5bf86ec80efdda4a7d39 |
|
MD5 | 17458a2b8b2696e207d3bb053f003613 |
|
BLAKE2b-256 | 4f75ede8c5f556384e3783bbe74607ae131133553a115aba2d1270966cb36077 |
File details
Details for the file os2mo_init-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: os2mo_init-0.0.3-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.9 CPython/3.9.7 Linux/5.4.0-1049-gcp
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bcf7a16f0cbe20d1dea812cf6937d618025b09849154c5690e72f8832b0cc76 |
|
MD5 | aad57dbbac32f1900fd6a8510823e779 |
|
BLAKE2b-256 | b9c2e5d3a0af7483b87f06c619f845271cf36363fef11bf93596185e1cfc8f88 |