diff --git a/.gitignore b/.gitignore index 378eac2..d9435df 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ build +b diff --git a/Dockerfile.amd64 b/Dockerfile.amd64 index 47f3c83..5cfe283 100644 --- a/Dockerfile.amd64 +++ b/Dockerfile.amd64 @@ -37,6 +37,7 @@ MAINTAINER Christian Berger "christian.berger@gu.se" RUN apk update && \ apk --no-cache add \ + bash \ fuse WORKDIR /usr/bin diff --git a/comma.ai-2016-01-31_191925-local-rec2fuse.yml b/comma.ai-2016-01-31_191925-local-rec2fuse.yml new file mode 100644 index 0000000..1378ee1 --- /dev/null +++ b/comma.ai-2016-01-31_191925-local-rec2fuse.yml @@ -0,0 +1,47 @@ +# Copyright (C) 2018 Christian Berger +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +version: "2" + +services: + data: + image: seresearch/opendlv-gallery-comma.ai:2016-01-31--19-19-25 + + cluon-rec2fuse: + depends_on: + - data + image: chrberger/cluon-rec2fuse:v0.0.69 + cap_add: + - SYS_ADMIN + - MKNOD + security_opt: + - apparmor:unconfined + devices: + - "/dev/fuse:/dev/fuse" + volumes_from: + - data + volumes: + - ./mnt:/opt/output:shared + - ./ODVDCommaAI.odvd:/opt/odvd + - /etc/passwd:/etc/passwd:ro + - /etc/group:/etc/group:ro + environment: + - "USER=${USER}" + command: > + bash -c "chown -R ${USER}:${USER} /opt/output + && su -s /bin/sh $USER -c 'cluon-rec2fuse --rec=/opt/comma.ai-dataset/2016-01-31--19-19-25.rec --odvd=/opt/odvd -f /opt/output' + && echo 'Recording file successfully mounted. To end mounting, press Ctrl-C and run fusermount -u mnt.' + && tail -f /dev/null" +