Secrets, .balena and balena engine

Latest status. The following is needed to get the service files working:

  • copy balena-engine.[sock, service] to /etc/systemd/system
  • addgroup --system balena-engine
  • replace /usr/bin with /usr/local/bin in balena-engine.service, this is needed as the installation script installs to /usr/local/bin
  • systemctl daemon-reload
  • systemctl enable balena-engine, if needed after reboot
  • systemctl start balena-engine

Use root user to build images or add balena-engine group to non-root build user:

  • usermod -aG balena-engine [username]
  • log out and log in as [username]
  • type ‘id’ in console to see the balena-engine group in list
2 Likes