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=falseGOOGLE_AUTHENTICATION=falseERRBIT_HOST=errors.octr.eeRAILS_ENV=productionERRBIT_USER_HAS_USERNAME=falseMONGO_URL=mongodb://webadmin:my_insecure_64chars_password@mongo:27017SECRET_KEY_BASE=my_insecure_64chars_keySMTP_SERVER=mail.infomaniak.comSMTP_PORT=465SMTP_AUTHENTICATION=plainSMTP_USERNAME=hello@example.orgSMTP_PASSWORD=my_insecure_passwordERRBIT_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_passwordMONGO_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_KEYto a errbit project - restart the container
You need to do this in the Application Servers Layer
0
🔗 Lire plus
🔗 References