File tree Expand file tree Collapse file tree 3 files changed +2
-18
lines changed Expand file tree Collapse file tree 3 files changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ wsl --install -d Ubuntu-20.04
2222
2323# Set user and password
2424# Keep up to date
25+ wsl -d Ubuntu-20.04
2526sudo apt update && sudo apt upgrade -y
2627
2728# Add distrod to the GuestOS
Original file line number Diff line number Diff line change 11{
22 "name" : " nerdctl" ,
3- "version" : " 0.1.9 " ,
3+ "version" : " 0.2.0 " ,
44 "main" : " dist/index.js" ,
55 "types" : " dist/index.d.ts" ,
66 "description" : " Node wrapper for nerdctl" ,
Original file line number Diff line number Diff line change @@ -20,20 +20,3 @@ export function factory(
2020 throw new Error ( `OS "${ platform } " is not supported.` ) ;
2121 }
2222}
23-
24- async function test ( ) {
25- const vm = factory ( "wsl -u vmenv" ) ;
26- console . log ( await vm . getImages ( ) ) ;
27- const child = await vm . pullImage ( "hello-world" ) ;
28- await new Promise ( ( resolve , reject ) => {
29- child . stderr ?. on ( "data" , ( data ) => {
30- console . log ( data ) ;
31- } ) ;
32- child . stdout ?. on ( "close" , ( ) => {
33- resolve ( true ) ;
34- } ) ;
35- } ) ;
36- console . log ( await vm . getImages ( ) ) ;
37- }
38-
39- test ( ) ;
You can’t perform that action at this time.
0 commit comments