Skip to main content

Install Errbit

Errbit is a Ruby on Rails application, working with MongoDB database.

Topology

(docker-compose: https://github.com/errbit/errbit/blob/main/docker-compose.yml)

cp

  • imageType: docker
  • image: errbit/errbit:latest (https://registry.hub.docker.com/r/errbit/errbit)
  • volumes: —
  • port: 8080
  • links: nosqldb:mongo
  • environments:
    • GITHUB_AUTHENTICATION=false
    • GOOGLE_AUTHENTICATION=false
    • ERRBIT_HOST=errors.octr.ee
    • RAILS_ENV=production
    • ERRBIT_USER_HAS_USERNAME=false
    • MONGO_URL=mongodb://webadmin:my_insecure_64chars_password@mongo:27017
    • SECRET_KEY_BASE=my_insecure_64chars_key
    • SMTP_SERVER=mail.infomaniak.com
    • SMTP_PORT=465
    • SMTP_AUTHENTICATION=plain
    • SMTP_USERNAME=hello@example.org
    • SMTP_PASSWORD=my_insecure_password
    • ERRBIT_EMAIL_FROM=hello@example.org

nosqldb

  • imageType: docker
  • image: mongo/mongo (https://registry.hub.docker.com/_/mongo/)
  • volumes: —
  • port: 27017
  • environments:
    • MONGO_INITDB_ROOT_PASSWORD=my_insecure_64chars_password
    • MONGO_INITDB_ROOT_USERNAME=webadmin

First Install

  1. Create the jelastic environment for Errbit

  2. Go on Application Server Layer, and open an shell

    1. cd /app
  3. Create your first user.

    1. Open a rails console : bundle exec rails c
    2. Create a new user
    User.create!(name: "Moi Example", email: "moi@example.org", password: "insecure_12chars_pass", password_confirmation: "insecure_12chars_pass")

Errbit should be now available and you should be able to connect.

Define a user as Admin

  1. In the Application Server Layer, open a shell

    1. cd /app
  2. Update the user as admin

    1. Open a Rails console : bundle exec rails c
    2. Update the user you need
    user = User.find_by(email: "moi@example.org")
    user.update(admin: true)

Errbit with Voca Backend

Voca Backend by default support Errbit, using the environment values:

  • ERRBIT_API_KEY : The project id in Errbit
  • ERRBIT_URL: The local IPV4 node of the errbit container

This will enable errbit for both the api and the workers.

Errbit with Decidim

By default, parked decidim will be instanciate with the ERRBIT_URL of the voca backend, and an empty ERRBIT_API_KEY.

To bind a decidim to your errbit installation, you need :

  1. setup the environment variable ERRBIT_API_KEY to a errbit project
  2. restart the container

You need to do this in the Application Servers Layer

0

🔗 Lire plus

🔗 References