Last active
May 12, 2022 00:08
-
-
Save bergpb/50340bcb1599079a23d17fd9d7237e9d to your computer and use it in GitHub Desktop.
Install balena-engine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Special thanks for @rgaudin to share your project | |
| # based on https://github.com/rgaudin/bard-image | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Please run as root" | |
| exit | |
| fi | |
| REPO_URL="https://raw.githubusercontent.com/bergpb/bard-image/main" | |
| # install balenaEngine | |
| echo "install balena-engine" | |
| curl -sL https://github.com/balena-os/balena-engine/releases/download/v18.9.13/balena-engine-v18.9.13-armv6l.tar.gz | tar xzv -C /usr/local/bin/ --strip-components=2 | |
| groupadd balena-engine | |
| # Add files listed bellow | |
| wget -O /etc/systemd/system/balena.service $REPO_URL/balena.service | |
| wget -O /etc/systemd/system/balena.socket $REPO_URL/balena.socket | |
| systemctl daemon-reload | |
| systemctl start balena.socket | |
| systemctl enable balena.socket | |
| systemctl start balena | |
| systemctl enable balena | |
| usermod -aG balena-engine pi # (or whatever user) to enable non-root balena mgmt | |
| ln -sf /var/run/balena-engine.sock /var/run/docker.sock | |
| # install docker-compose | |
| curl -L "https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-linux-armv6" -o /usr/local/bin/docker-compose | |
| chmod +x /usr/local/bin/docker-compose | |
| echo "Installation finished" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This only will works on a specific version of raspbian, more information here: balena-os/balena-engine#136