-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c2c64b
commit 82aabe4
Showing
25 changed files
with
65 additions
and
152 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,3 @@ | ||
PROJECT_NAME=hidman | ||
RELEASE_TAG=v0.9 | ||
DOCKER_SRC=iitschri/ubuntu20.04-docker:2021.12.1 |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,27 +1,19 @@ | ||
version: '3.7' | ||
version: '3.8' | ||
|
||
x-hidmanbase: &hidman-base | ||
|
||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
args: | ||
DOCKER_SRC: python:3.8 | ||
services: | ||
|
||
volumes: | ||
- type: bind | ||
source: ./ | ||
target: /usr/local/src/hidman | ||
main: | ||
image: ${LOCAL_DOCKER_IMAGE} | ||
|
||
image: iitschri/hidman:latest | ||
environment: | ||
- PROJECT_NAME=${PROJECT_NAME} | ||
|
||
privileged: true | ||
stdin_open: true | ||
tty: true | ||
network_mode: host | ||
volumes: | ||
- type: bind | ||
source: ./ | ||
target: /home/docky/hidman | ||
|
||
services: | ||
devices: | ||
- "/dev/input/event18:/dev/input/hidman0" | ||
|
||
hidman-dev: | ||
<<: *hidman-base | ||
command: bash | ||
command: terminator |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
RELEASE_TAG=v0.8 | ||
HIDMAN_DEVICE=/dev/input/event7 |
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,15 @@ | ||
version: '3.7' | ||
|
||
services: | ||
|
||
test-device: | ||
image: iitschri/hidman-docker:${RELEASE_TAG} | ||
command: python3 /home/docky/workdir/examples/device.py | ||
|
||
devices: | ||
- ${HIDMAN_DEVICE}:/dev/input/hidman0 | ||
|
||
volumes: | ||
- type: bind | ||
source: ../workdir | ||
target: /home/docky/workdir |
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,12 @@ | ||
version: '3.7' | ||
|
||
services: | ||
|
||
test-latency: | ||
image: iitschri/hidman-docker:${RELEASE_TAG} | ||
command: python3 /home/docky/workdir/examples/latency_test.py | ||
|
||
volumes: | ||
- type: bind | ||
source: ../workdir | ||
target: /home/docky/workdir |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
__authors__ = 'Davide De Tommaso' | ||
__emails__ = 'davide.detommaso@iit.it' | ||
__license__ = 'MIT' | ||
__version__ = '0.8' | ||
__version__ = '0.9' | ||
__description__ = 'A Python based HID (Human Interface Device) events manager' | ||
__requirements__ = ['pytest>=6.2.4', 'evdev>=1.4.0', 'pyzmq>=22.1.0'] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
RELEASE_TAG=v0.8 | ||
HIDMAN_DEVICE=/dev/input/event7 |
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 |
---|---|---|
@@ -1,29 +1,14 @@ | ||
version: '3.7' | ||
|
||
x-hidmanbase: &hidman-base | ||
|
||
volumes: | ||
- type: bind | ||
source: ../ | ||
target: /usr/local/src/hidman | ||
|
||
image: iitschri/hidman:latest | ||
|
||
privileged: true | ||
stdin_open: true | ||
tty: true | ||
network_mode: host | ||
|
||
services: | ||
|
||
hidman-server: | ||
<<: *hidman-base | ||
image: iitschri/hidman:${RELEASE_TAG} | ||
command: python3 /usr/local/src/hidman/apps/python-examples/server.py | ||
devices: | ||
- ${HIDMAN_DEVICE}:/dev/input/hidman0 | ||
|
||
hidman-client: | ||
<<: *hidman-base | ||
image: iitschri/hidman:${RELEASE_TAG} | ||
command: python3 /usr/local/src/hidman/apps/python-examples/client.py | ||
depends_on: | ||
- hidman-server |
18 changes: 2 additions & 16 deletions
18
apps/client_server_threads.yml → workdir/apps/client_server_threads.yml
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 |
---|---|---|
@@ -1,29 +1,15 @@ | ||
version: '3.7' | ||
|
||
x-hidmanbase: &hidman-base | ||
|
||
volumes: | ||
- type: bind | ||
source: ../ | ||
target: /usr/local/src/hidman | ||
|
||
image: iitschri/hidman:latest | ||
|
||
privileged: true | ||
stdin_open: true | ||
tty: true | ||
network_mode: host | ||
|
||
services: | ||
|
||
hidman-server: | ||
<<: *hidman-base | ||
image: iitschri/hidman:${RELEASE_TAG} | ||
command: python3 /usr/local/src/hidman/apps/python-examples/server.py | ||
devices: | ||
- ${HIDMAN_DEVICE}:/dev/input/hidman0 | ||
|
||
hidman-client: | ||
<<: *hidman-base | ||
image: iitschri/hidman:${RELEASE_TAG} | ||
command: python3 /usr/local/src/hidman/apps/python-examples/client_threads.py | ||
depends_on: | ||
- hidman-server |
18 changes: 2 additions & 16 deletions
18
apps/client_server_timeout.yml → workdir/apps/client_server_timeout.yml
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 |
---|---|---|
@@ -1,29 +1,15 @@ | ||
version: '3.7' | ||
|
||
x-hidmanbase: &hidman-base | ||
|
||
volumes: | ||
- type: bind | ||
source: ../ | ||
target: /usr/local/src/hidman | ||
|
||
image: iitschri/hidman:latest | ||
|
||
privileged: true | ||
stdin_open: true | ||
tty: true | ||
network_mode: host | ||
|
||
services: | ||
|
||
hidman-server: | ||
<<: *hidman-base | ||
image: iitschri/hidman:${RELEASE_TAG} | ||
command: python3 /usr/local/src/hidman/apps/python-examples/server.py | ||
devices: | ||
- ${HIDMAN_DEVICE}:/dev/input/hidman0 | ||
|
||
hidman-client: | ||
<<: *hidman-base | ||
image: iitschri/hidman:${RELEASE_TAG} | ||
command: python3 /usr/local/src/hidman/apps/python-examples/client_timeout.py | ||
depends_on: | ||
- hidman-server |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.