Skip to content

Infrastructure

Doppler

Installation

Official docs

macOS

# Prerequisite. gnupg is required for binary signature verification
brew install gnupg

# Next, install using brew (use `doppler update` for subsequent updates)
brew install dopplerhq/cli/doppler

Debian/Ubuntu

sudo apt-get update && sudo apt-get install -y apt-transport-https ca-certificates curl gnupg
curl -sLf --retry 3 --tlsv1.2 --proto "=https" 'https://packages.doppler.com/public/cli/gpg.DE2A7741A397C129.key' | sudo apt-key add -
echo "deb https://packages.doppler.com/public/cli/deb/debian any-version main" | sudo tee /etc/apt/sources.list.d/doppler-cli.list
sudo apt-get update && sudo apt-get install doppler

To run the command,

doppler run -- your-command-here  # single command
doppler run --command="./configure && ./process-jobs; ./cleanup"  # multiple commands

Verify whether doppler is setup correctly

doppler run --command='echo $AIRTABLE_KEY'

VSCode Setup

Step 1: Create .env file under the project folder with the content

DOPPLER_ENV=1

Step 2: Run doppler setup

Doppler Python Setup VSCode Env File

XCP-NG Basic Operations

xe vm-list
xe vm-start uuid=<uuid>
xe vm-disk-list vm=<uuid>

XCP-NG Resize VM Disk

Reference Technically, resizing using XOA is simply provisioning more physical resource. That being said, we also need to resize the VM partition, otherwise the OS won't recognize the change.

Step 1: Adjust the disk size via the XOA vm tab
Step 2: Setup the boot order, load ISO DVD, and boot into live OS
Step 3: Use Gparted (already installed) to resize the partition
Step 4: Eject the ISO dvd
Step 5: Reboot

Deployment VM Structure

~/baserow/deploy_baserow.sh
~/.deployments/baserow
~/appsmith/deploy_appsmith.sh
~/.deployments/appsmith
~/changedetection/deploy_changedetection.sh
~/.deployments/changedetection
...

Netdata Slack Notification (Synology DSM)

Netdata on Synology DSM is a bit different from the normal process.

Offical Doc

Slack App Console

cd /opt/netdata/netdata-configs
sudo ./edit-config health_alarm_notify.conf

To test out the setup

sudo su -s /bin/bash netdata
/usr/libexec/netdata/plugins.d/alarm-notify.sh test