Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto build docker for Actions #103

Merged
merged 5 commits into from
Nov 11, 2022
Merged

Conversation

twocolors
Copy link
Contributor

this Actios for github for auto build docker, support platforms: linux/amd64, linux/arm64, linux/arm/v7, linux/arm/v6 and node 14,16,18

llast tags for nodejs 16

@gfwilliams
Copy link
Member

Have you tried this and it actually works ok? Because I'd have thought that running EspruinoHub in docker was a bit of a nightmare given how it needs access to system Bluetooth?

@twocolors
Copy link
Contributor Author

dietpi@holyland:~$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
dietpi@holyland:~$ uname -a
Linux holyland 5.15.76-v8+ #1597 SMP PREEMPT Fri Nov 4 12:16:41 GMT 2022 aarch64 GNU/Linux
dietpi@holyland:~$ sudo docker-compose logs -f espruinohub --tail=150
espruinohub  | [Config] Config /data/config.json loaded
espruinohub  | [HTTPProxy] config.http_proxy=false, not enabling Bleno/Proxy
espruinohub  | [MQTT] Connecting...
espruinohub  | [HTTP] No http_port in config. Not enabling web server
espruinohub  | [History] history_path value is empty, thus not providing history.
espruinohub  | [MQTT] Connected
espruinohub  | [Discover] Re-sending presence status of known devices
espruinohub  | [Discover] Noble StateChange: poweredOn
espruinohub  | [Discover] caller if function () {
espruinohub  |     exports.startScan();
espruinohub  |   }
espruinohub  | [Discover] Spawning check-broken interval
espruinohub  | [Discover] Starting Scan
espruinohub  | [Discover] Scanning started.
^Ccanceled
dietpi@holyland:~$ 

run on pi4 , example for docker-compose its my config

Bluetooth for docker only need --host

in any case, automatic build and docker image will not hurt

@twocolors
Copy link
Contributor Author

i add article by Thomas Huffert , but i use dbus in host and now need --privileged , but added as an example, in general, people who run docker understand what they usually do :)


docker build -t espruino/espruinohub:armhf https://github.com/espruino/EspruinoHub.git
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth leaving this line in just in case someone wants to build it themselves at some point?

@gfwilliams
Copy link
Member

Thanks for adding the privileged bit - I think that would help out a lot of new users wondering why it didn't pick up any bluetooth devices :)

@twocolors
Copy link
Contributor Author

update doc for arch and build

@gfwilliams
Copy link
Member

That's great - thanks!

@gfwilliams gfwilliams merged commit 3333bb4 into espruino:master Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants