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

Running this app on docker (linux) #61

Open
tkrafael opened this issue Aug 24, 2021 · 0 comments
Open

Running this app on docker (linux) #61

tkrafael opened this issue Aug 24, 2021 · 0 comments

Comments

@tkrafael
Copy link

tkrafael commented Aug 24, 2021

Hi guys,
Don't know where to put this trick. I was able to run this app inside docker using the following instructions:

Create an image containing the required dependencies and this repo:

docker build -t aucc -f - . <<EOF
FROM python                                 
RUN apt-get update && apt-get install -y usbutils hwinfo; git clone https://github.com/rodgomesc/avell-unofficial-control-center.git
WORKDIR avell-unofficial-control-center
RUN python3 setup.py build; python3 setup.py install;
CMD aucc

EOF

Create an alias in your bash env:
alias aucc="docker run --privileged -v /dev/bus/usb:/dev/bus/usb -it --rm aucc aucc"

Now, run the aucc command to test the configuration:
aucc -c orange -b 2

Please note that the container is running in privileged mode and gives full access to all devices to the container. There's a way to configure cgroups to limit the access.

Author, if you want, update the README file to include those instructions. It will allow people to run the app without polluting python env and dependencies.

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

No branches or pull requests

1 participant