Skip to content

Commit

Permalink
Dev branche (#5)
Browse files Browse the repository at this point in the history
* Added JSON Schema description

* Smaller adjustments on the description

* Add headlines

* fixed typo

* fixed typo

* Replaced priviledge mode by adding "/dev/input"
  • Loading branch information
HummelN7872 authored May 27, 2021
1 parent 1361761 commit c42e62a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ services:
build: ./src
image: scannerap:1.2.0
restart: on-failure
privileged: true
mem_limit: 100mb
networks:
- proxy-redirect
volumes:
- './publish/:/publish/'
- './cfg-data/:/cfg-data/'
devices:
- '/dev/input:/dev/input'

networks:
proxy-redirect:
Expand Down
4 changes: 3 additions & 1 deletion docs/Implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The python-evdev libray can be used in your python script by importing evdev: *i

### Accessing device tree

To enable the access to the hosts devices, the application needs to run in priviledge mode. The priviledge mode needs to be enable in the docker-compose file by adding the **privileged:** **true** option to the corresponding service.
To enable the access to the input devices, the application needs to have access the `/dev/input` folder of the host system. The input device folder can be added by using the **devices** keyword in the docker-compose file. The dedicated devices will then be mapped to the docker container and can be used by the application.

>**Excerpt from docker-compose.yml**
>
Expand All @@ -34,6 +34,8 @@ To enable the access to the hosts devices, the application needs to run in privi
> volumes:
> - './publish/:/publish/'
> - './cfg-data/:/cfg-data/'
> devices:
> - '/dev/input:/dev/input'
### Check for dedicated input device

Expand Down

0 comments on commit c42e62a

Please sign in to comment.