Browse Source

update docker version 0.5 contains paramiko

master
Jeong Geol Kim 4 years ago
parent
commit
e65f34e3cc
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      auto_extract.py

+ 4
- 4
auto_extract.py View File

34
                     r_time = time.ctime(time.time())
34
                     r_time = time.ctime(time.time())
35
                     f.write('exectue is successfully starts at ' + str(r_time) + '\n')
35
                     f.write('exectue is successfully starts at ' + str(r_time) + '\n')
36
                     f.close()
36
                     f.close()
37
-                    cmd_list = ['docker run --rm --name extract_1 --gpus '"device=0"' -v /dev:/dev -v /home/mc365/sources:/sources -v /hdd:/hdd ellishuntingmoon/mailsys:0.4 python3 /sources/extract_01.py ' + id + '/ >> /dev/null', 'echo ext_1 start']
37
+                    cmd_list = ['docker run --rm --name extract_1 --gpus '"device=0"' -v /dev:/dev -v /home/mc365/sources:/sources -v /hdd:/hdd ellishuntingmoon/mailsys:0.5 python3 /sources/extract_01.py ' + id + '/ >> /dev/null', 'echo ext_1 start']
38
                     for index in range(0, len(cmd_list)):
38
                     for index in range(0, len(cmd_list)):
39
                         thread_list.append(threading.Thread(target=cmd_run,args=(index,cmd_list)))
39
                         thread_list.append(threading.Thread(target=cmd_run,args=(index,cmd_list)))
40
                         thread_list[index].start()         
40
                         thread_list[index].start()         
41
-                    os.system('docker run --rm --name extract_2 --gpus '"device=1"' -v /dev:/dev -v /home/mc365/sources:/sources -v /hdd:/hdd ellishuntingmoon/mailsys:0.4 python3 /sources/extract_02.py ' + id + '/ >> /dev/null')       
41
+                    os.system('docker run --rm --name extract_2 --gpus '"device=1"' -v /dev:/dev -v /home/mc365/sources:/sources -v /hdd:/hdd ellishuntingmoon/mailsys:0.5 python3 /sources/extract_02.py ' + id + '/ >> /dev/null')       
42
                     f = open(file, 'at')
42
                     f = open(file, 'at')
43
                     r_time = time.ctime(time.time())
43
                     r_time = time.ctime(time.time())
44
                     f.write('exectue is successfully ends at ' + str(r_time) + '\n')
44
                     f.write('exectue is successfully ends at ' + str(r_time) + '\n')
50
                     f.write('global coordinate successfully starts at ' + str(r_time) + '\n')
50
                     f.write('global coordinate successfully starts at ' + str(r_time) + '\n')
51
                     f.close()
51
                     f.close()
52
                     #FIXME: change coordinate_g.py when IMU sensor works
52
                     #FIXME: change coordinate_g.py when IMU sensor works
53
-                    os.system('docker run --rm --name coordinate --gpus '"device=1"' -v /dev:/dev -v /home/mc365/sources:/sources -v /hdd:/hdd ellishuntingmoon/mailsys:0.4 python3 /sources/coordinate_g.py ' + id + '/ >> /dev/null')
53
+                    os.system('docker run --rm --name coordinate --gpus '"device=1"' -v /dev:/dev -v /home/mc365/sources:/sources -v /hdd:/hdd ellishuntingmoon/mailsys:0.5 python3 /sources/coordinate_g.py ' + id + '/ >> /dev/null')
54
                     f = open(file, 'at')
54
                     f = open(file, 'at')
55
                     r_time = time.ctime(time.time())
55
                     r_time = time.ctime(time.time())
56
                     f.write('global coordinate successfully ends at ' + str(r_time) + '\n')
56
                     f.write('global coordinate successfully ends at ' + str(r_time) + '\n')
63
                     f.write('kpi successfully starts at ' + str(r_time) + '\n')
63
                     f.write('kpi successfully starts at ' + str(r_time) + '\n')
64
                     f.close()
64
                     f.close()
65
                     #FIXME: change coordinate_g.py when IMU sensor works and get generic optimizer for DBSCAN
65
                     #FIXME: change coordinate_g.py when IMU sensor works and get generic optimizer for DBSCAN
66
-                    os.system('docker run --rm --name kpi --gpus '"device=1"' -v /dev:/dev -v /home/mc365/sources:/sources -v /hdd:/hdd ellishuntingmoon/mailsys:0.4 python3 /sources/kpi.py ' + id + '/ >> /dev/null')
66
+                    os.system('docker run --rm --name kpi --gpus '"device=1"' -v /dev:/dev -v /home/mc365/sources:/sources -v /hdd:/hdd ellishuntingmoon/mailsys:0.5 python3 /sources/kpi.py ' + id + '/ >> /dev/null')
67
                     f = open(file, 'at')
67
                     f = open(file, 'at')
68
                     r_time = time.ctime(time.time())
68
                     r_time = time.ctime(time.time())
69
                     f.write('kpi successfully ends at ' + str(r_time) + '\n')
69
                     f.write('kpi successfully ends at ' + str(r_time) + '\n')

Loading…
Cancel
Save