From 535a58f146fece2c2d6a3eb403289105fe71a89c Mon Sep 17 00:00:00 2001 From: yapsr Date: Sat, 10 Oct 2020 12:32:22 +0200 Subject: [PATCH] Added docker support --- docker/Dockerfile | 7 +++++++ docker/build | 2 ++ docker/start | 2 ++ 3 files changed, 11 insertions(+) create mode 100644 docker/Dockerfile create mode 100755 docker/build create mode 100755 docker/start diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..7b79dc0 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,7 @@ +FROM ruby:2.7.2-alpine + +RUN apk --update add --no-cache --virtual .dependencies build-base \ + && gem install gm1356 \ + && apk del .dependencies + +CMD ["gm1356"] \ No newline at end of file diff --git a/docker/build b/docker/build new file mode 100755 index 0000000..8ddbd12 --- /dev/null +++ b/docker/build @@ -0,0 +1,2 @@ +#!/bin/bash +docker build --no-cache -t gm1356 ./ diff --git a/docker/start b/docker/start new file mode 100755 index 0000000..8eb19c2 --- /dev/null +++ b/docker/start @@ -0,0 +1,2 @@ +#!/bin/bash +docker run -it --privileged -v /dev/bus/usb:/dev/bus/usb gm1356