StartinBlox Manager
Project description
# Startin’Blox Manager
## Requirements
You will need both Python3 and Pip3 installed.
Install the sib command line: ` $ pip3 install --user -U sib-manager `
## Get started with a development instance
Create a new project with your favorite modules. To create a project with djangoldp_project and oidc_provider : ` $ sib startproject myproject -m djangoldp_project -m oidc_provider:django-oidc-provider $ sib initproject myproject `
And launch it locally ! ` $ cd myproject $ python3 manage.py runserver `
For development instance, the administartion interface is available at http://localhost/admin/ with default admin user and password.
## Usage
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.
A production setup can made by the –production switch option.
- startproject: creates a fresh project tree
–module (or -m) options gives the startin’blox module with the format <package>:<distribution> (distribution is optional)
–site-url is used to generate links and ids (default to http://localhost:8000)
–db-host, –db-name, –db-user and –db-pass are used to configure the database (mandatory with –production)
- initproject: initializes a project tree
–admin-name, –admin-pass and –admin-email give details about the default admin (default to admin in development, mandatory in production)
Both startproject and initproject take an optional path for the project as a second argument to define the project directory.
## Contribute
Get the last unreleased version of the project: ` $ pip3 install --user -U git+https://git.happy-dev.fr/startinblox/devops/sib `
## Testing in docker
Test production setup 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 python:3.6 bash # pip install -e .[dev] # sib startproject --production --db-host db --db-name postgres --db-user postgres --db-pass test -m djangoldp_project -m oidc_provider:django-oidc-provider myproject /tmp/test-sib-docker # sib initproject --production --admin-name admin --admin-email 'something' --admin-pass admin myproject /tmp/test-sib-docker # cd /tmp/test-sib-docker/ # python manage.py runserver 0.0.0.0:8000 `
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
Hashes for sib_manager-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05e78c3f5f25cdbd1b8d0036f224ec08761e3b5a9b7e926d77834f91370ccdb2 |
|
MD5 | b0cf1d628fff2c7124832ba1495d1d72 |
|
BLAKE2b-256 | 6025f370045c54441fe736812ab081d7575a1f230cf04b653d17052ae39c157b |