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
-
Create the jelastic environment for Errbit
-
Go on Application Server Layer, and open an shell
cd /app
-
Create your first user.
- Open a rails console :
bundle exec rails c
- Create a new user
User.create!(name: "Moi Example", email: "moi@example.org", password: "insecure_12chars_pass", password_confirmation: "insecure_12chars_pass")
- Open a rails console :
Errbit should be now available and you should be able to connect.
Define a user as Admin
-
In the Application Server Layer, open a shell
cd /app
-
Update the user as admin
- Open a Rails console :
bundle exec rails c
- Update the user you need
user = User.find_by(email: "moi@example.org")
user.update(admin: true) - Open a Rails console :
Errbit with Voca Backend
Voca Backend by default support Errbit, using the environment values:
ERRBIT_API_KEY
: The project id in ErrbitERRBIT_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 :
- setup the environment variable
ERRBIT_API_KEY
to a errbit project - restart the container
You need to do this in the Application Servers Layer
0
🔗 Lire plus
🔗 References