@@ -43,7 +43,19 @@ overridden with the `-keyring` flag).
43
43
Edit the file to match your app. In particular, you will want to change
44
44
the command used to launch the app, near the bottom of the file.
45
45
46
- Then, get a Docker image to convert. Invoke:
46
+ Then, create a ` Dockerfile ` in the current directory, which will be
47
+ responsible for building the filesystem for your app. Finally, from the
48
+ directory containing ` Dockerfile ` and ` sandstorm-pkgdef.capnp ` , run:
49
+
50
+ ```
51
+ docker-spk build
52
+ ```
53
+
54
+ This will build the docker image and then package it into a ` .spk ` file.
55
+ with the name derived from the app name and version defined in
56
+ ` sandstorm-manifest.capnp ` .
57
+
58
+ Alternatively, you can package an already-built docker image:
47
59
48
60
```
49
61
docker-spk pack -image <image-name>
@@ -52,8 +64,7 @@ docker-spk pack -image <image-name>
52
64
...to use the image ` <image-name> ` , fetched from a running Docker
53
65
daemon.
54
66
55
- This will create an ` .spk ` file, with the name derived from the app name
56
- and version defined in ` sandstorm-manifest.capnp ` .
67
+ This will skip the build step and just create the ` .spk ` .
57
68
58
69
You can also use ` docker save ` to fetch the image manually and specify
59
70
the file name via ` -imagefile ` :
@@ -70,7 +81,6 @@ seeing how to package apps with `docker-spk`.
70
81
71
82
# Reference
72
83
73
-
74
84
See ` docker-spk -h ` .
75
85
76
86
# License
0 commit comments