StartinBlox Manager
Project description
Startin'Blox Manager
Requirements
You will need both Python3 and Pip3 installed. You can follow this article if you don't konw where to start.
Before diving in Startin' Blox manager, just make sure you got the last version of pip by upgrading it:
sudo pip3 install --upgrade pip
Then install the sib command line:
$ pip3 install --user -U sib-manager
Note:
- This install the
sibprogram in the user context.sibdoesn't need system priveleges - In some distribution the system can't find the user programs. In that case you have to add it manually, for example, by adding
export PATH=$HOME/.local/bin:$PATHin your~/.bashrc.
Get started with a new project
sib supports installation inside venv
Create a new project:
$ sib startproject myproject
$ cd myproject
Note:
- The project name must be a valid python package name (no dashes).
Configure the modules you want to use in packages.yml:
ldppackages:
djangoldp_project: djangoldp_project
oidc_provider: django-oidc-provider
Run the installation:
$ sib install myproject
And launch it locally !
$ python3 manage.py runserver
The administration interface is available at http://localhost:8000/admin/ with default admin user and password.
Usage
$ sib --help
Usage: sib [OPTIONS] COMMAND [ARGS]...
Startin'Blox installer
sib manager can be used to deploy local development and production instances. Whereas a development instance relies on testing components as a sqlite database and comes with default configuration, a production instance needs more parameters to configure the postgresql database.
Contribute
Get the last unreleased version of the project:
$ pip3 install --user -U git+https://git.happy-dev.fr/startinblox/devops/sib
Test strategy
To test:
- create superuser twice
- add a package after install and update
- install without packages
Unit testing:
# docker run --rm -v $PWD:/code -w /code -it happydev1/sib:3.6 bash
# pip install --user -e .[dev]
# pytest tests/unit
Integration testing with postgres:
# docker network create sib
# docker run --rm --network sib --name db -e POSTGRES_PASSWORD=test -d postgres
# docker run --rm --network sib -p 127.0.0.1:80:8000 -v $PWD:/code -it happydev1/sib:3.6 bash
# pip install --user -e .[dev]
# pytest tests/integration
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sib-manager-0.4.2.tar.gz.
File metadata
- Download URL: sib-manager-0.4.2.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24d6d4c81b27014733f4a0438b752ffed53b6391471cf8afdf1aebcc2993dea2
|
|
| MD5 |
d7e8d378b7719f3c7601e2d60c636ba5
|
|
| BLAKE2b-256 |
307166e16cda69c0556f4b89da088785aab78937b89c8d4495963c941aa6de58
|
File details
Details for the file sib_manager-0.4.2-py3-none-any.whl.
File metadata
- Download URL: sib_manager-0.4.2-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79b20d2ce9b333b9bb99ca477803548923216613957e2d1035baac1bb7dac26c
|
|
| MD5 |
ea7812d8e1615ab531902c5dadf12a7d
|
|
| BLAKE2b-256 |
e6f61e7dc6b28b32a5cbe1afef62be7d529856ad88c9d8d36bcdabdf3b1849ea
|