Skip to content

Commit

Permalink
* First test of cluon-rec2fuse
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berger <christian.berger@gu.se>
  • Loading branch information
chrberger committed Apr 10, 2018
1 parent a1cfae9 commit bf09da2
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build
b
1 change: 1 addition & 0 deletions Dockerfile.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ MAINTAINER Christian Berger "christian.berger@gu.se"

RUN apk update && \
apk --no-cache add \
bash \
fuse

WORKDIR /usr/bin
Expand Down
47 changes: 47 additions & 0 deletions comma.ai-2016-01-31_191925-local-rec2fuse.yml
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.

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"

0 comments on commit bf09da2

Please sign in to comment.