mirror of
https://gitee.com/openharmony/third_party_rust_strsim-rs
synced 2024-11-26 17:31:18 +00:00
Use the official Docker image for Rust
This commit is contained in:
parent
91240376c1
commit
e701012617
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,5 +1,5 @@
|
|||||||
/target
|
/target
|
||||||
/Cargo.lock
|
/Cargo.lock
|
||||||
.vagrant
|
|
||||||
*.swp
|
*.swp
|
||||||
|
*.swo
|
||||||
|
.DS_Store
|
||||||
|
5
dev
5
dev
@ -7,8 +7,7 @@ from subprocess import call
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
call(['docker', 'run', '-it', '--rm', '-v', os.getcwd() + ':/source',
|
call(['docker', 'run', '-it', '--rm', '-v', os.getcwd() + ':/src:cached',
|
||||||
'jimmycuadra/rust:1.14.0'])
|
'-w=/src', 'rust:1.20.0'])
|
||||||
except OSError:
|
except OSError:
|
||||||
print('Please install Docker.', file=sys.stderr)
|
print('Please install Docker.', file=sys.stderr)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user