Skip to main content

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 sib program in the user context. sib doesn'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:$PATH in 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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sib-manager-0.4.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sib_manager-0.4.0-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file sib-manager-0.4.0.tar.gz.

File metadata

  • Download URL: sib-manager-0.4.0.tar.gz
  • Upload date:
  • Size: 6.0 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.32.2 CPython/3.6.8

File hashes

Hashes for sib-manager-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ceea340cc32ef89a4e54f4b2b8be71a78d4eca245eb5ac82534e7aff5051df07
MD5 ae79d48e43b5fefe33bc506fcfa8001f
BLAKE2b-256 f03a4648e86faeb9f65812ac009684f830f1748b2cffefca484b41044b7e9921

See more details on using hashes here.

File details

Details for the file sib_manager-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: sib_manager-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 17.8 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.32.2 CPython/3.6.8

File hashes

Hashes for sib_manager-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fdf2201fa967963d789a15bf0fbba00764b83586e15485c3cce3bb0443f88141
MD5 dd4e23caa4f8123757c2d27953c35011
BLAKE2b-256 990ce0417bf969633a906434108bedccf5a07f44b4226afadbdb7a001f9daefe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page