Installing the ferment.openvino.org Dashboard
These are the steps for installing the redeem dashboard.
Check port availability
Connect to the SSH console.
Run the command: `ss -tuln` to check if ports 3001 and 8081 are available.
Create the redeem folder
mkdir redeem-dashboard
cd redeem-dashboardClone the redeem respositories
git clone https://github.com/openvino/redeem_dashboard.git
git clone https://github.com/openvino/openvino_redeem_notifier.gitInstall node.js
sudo dnf install nodejs -yNavigate to the notifier folder:
cd openvino_redeem_notifier
Install dependencies:
npm install
Test run the server
npm start
Change to the dashboard folder and install dependencies:
cd ../redeem_dashboard
npm install --forceMake a build
npm run build
Test start the app
npm start
Edit the package.json file to reflect the correct ports:
"scripts": { "dev": "next dev --port 3002", "build": "next build", "start": "next start --port 3002", "lint": "next lint" },
Add port 3002 to the firewall
sudo firewall-cmd --zone=public --add-port=3002/tcp
Configure nginx
cd /etc/nginx/sites-available vi ferment.openvino.org.conf server { server_name ferment.openvino.org; # maintain the .well-known directory alias for renewals location /.well-known { alias /usr/share/nginx/html/ferment.openvino.org/.well-known; } location /{ proxy_pass http://64.225.10.229:3002; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/ferment.openvino.org/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/ferment.openvino.org/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot add_header Strict-Transport-Security "max-age=31536000" always; # managed by Certbot ssl_trusted_certificate /etc/letsencrypt/live/ferment.openvino.org/chain.pem; # managed by Certbot ssl_stapling on; # managed by Certbot ssl_stapling_verify on; # managed by Certbot } server { if ($host = ferment.openvino.org) { return 301 https://$host$request_uri; } # managed by Certbot server_name ferment.openvino.org; # maintain the .well-known directory alias for renewals location /.well-known { alias /usr/share/nginx/html/ferment.openvino.org/.well-known; } location /{ proxy_pass http://64.225.10.229:3002; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } listen 80; # managed by Certbot cd sites-enabled sudo ln -s /etc/nginx/sites-available/sites /etc/nginx/sites-enabled/sites
restart nginx
Update the database structure
Create the ferment user
Edit /etc/systemd/system/ferment.service
Configure systemd to automatically start the ferment dashboard on boot:
Edit /etc/systemd/system/ferment_notifier.service
Configure systemd to automatically start the ferment_notifier on boot:
Check the systemd status