-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add complete dependency list on Ubuntu (#55)
In order to figure this out (and make sure I was correct) I used a Docker container. By design it's awkward to support dbus & bluetooth from within a container, so totally understandable if you'd prefer to not include the Dockerfile in the repo. I managed to get the app to run and print out "Bluetooth is disabled" which exercises a decent bit of the code. If this is helpful, it could be the start of some light CI/GitHub workflows to run some testing for PRs. Co-authored-by: Alex R <[email protected]>
- Loading branch information
Showing
3 changed files
with
62 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM ubuntu:21.04 | ||
|
||
ENV DEBIAN_FRONTEND="noninteractive" TZ=" America/Los_Angeles" | ||
|
||
# xvfb is used to mock out the display for testing and is not required for real builds | ||
RUN apt update && apt install -y \ | ||
libgtk-3-dev python3-pip meson python3-dbus gtk-update-icon-cache desktop-file-utils gettext appstream-util libglib2.0-dev && \ | ||
apt install -y xvfb && \ | ||
rm -rf /var/lib/apt/lists/* && apt clean | ||
|
||
RUN pip3 install gatt pyxdg requests black | ||
|
||
COPY . /siglo | ||
|
||
WORKDIR /siglo | ||
|
||
RUN pwd && ls && mkdir -p ./build && \ | ||
meson --reconfigure ./build/ && \ | ||
cd ./build && ninja install | ||
|
||
CMD ["/bin/bash"] | ||
|
||
# Once the container is running, you should have all the dependencies you need | ||
# Start system dbus, then kickoff the app. For more details, you can see GTK's setup: | ||
# https://gitlab.gnome.org/GNOME/gtk/-/blob/fb052c8d2546706b49e5adb87bc88ad600f31752/.gitlab-ci.yml#L122 | ||
# | ||
# /etc/init.d/dbus start && dbus-run-session xvfb-run -a -s "-screen 0 1024x768x24" siglo |
This file contains 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
This file contains 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