File tree 2 files changed +27
-0
lines changed
2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ import em
2
+ import getpass
3
+ import os
4
+ import pkgutil
5
+ import sys
6
+ from rocker .extensions import RockerExtension , name_to_argument
7
+
8
+
9
+ class Fuse (RockerExtension ):
10
+ @staticmethod
11
+ def get_name ():
12
+ return 'fuse'
13
+
14
+ def __init__ (self ):
15
+ self ._env_subs = {}
16
+ self .name = Fuse .get_name ()
17
+
18
+ def get_docker_args (self , cli_args ):
19
+ return ' --cap-add SYS_ADMIN --security-opt apparmor:unconfined --device /dev/fuse'
20
+
21
+ @staticmethod
22
+ def register_arguments (parser , defaults = {}):
23
+ parser .add_argument (name_to_argument (Fuse .get_name ()),
24
+ action = 'store_true' ,
25
+ default = defaults .get (Fuse .get_name (), None ),
26
+ help = "enable Fuse" )
Original file line number Diff line number Diff line change 25
25
],
26
26
entry_points = {
27
27
'rocker.extensions' : [
28
+ 'fuse = novnc_rocker.fuse:Fuse' ,
28
29
'novnc = novnc_rocker.novnc:NoVNC' ,
29
30
'turbovnc = novnc_rocker.turbovnc:TurboVNC' ,
30
31
]
You can’t perform that action at this time.
0 commit comments