@@ -43,7 +43,19 @@ overridden with the `-keyring` flag).
4343Edit the file to match your app. In particular, you will want to change
4444the command used to launch the app, near the bottom of the file.
4545
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:
4759
4860```
4961docker-spk pack -image <image-name>
@@ -52,8 +64,7 @@ docker-spk pack -image <image-name>
5264...to use the image ` <image-name> ` , fetched from a running Docker
5365daemon.
5466
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 ` .
5768
5869You can also use ` docker save ` to fetch the image manually and specify
5970the file name via ` -imagefile ` :
@@ -70,7 +81,6 @@ seeing how to package apps with `docker-spk`.
7081
7182# Reference
7283
73-
7484See ` docker-spk -h ` .
7585
7686# License
0 commit comments