You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/ContainerImageBuilderPluginDocumentation/Documentation.docc/ContainerImageBuilderPlugin.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ The plugin does not require a container runtime to be installed locally in order
20
20
21
21
Try one of the [Examples](../../../Examples)
22
22
23
-
## Install a Swift SDK for cross-compilation on macOS
23
+
###Install a Swift SDK for cross-compilation on macOS
24
24
25
25
If you are running on macOS, you can use a [Swift SDK](https://github.com/apple/swift-evolution/blob/main/proposals/0387-cross-compilation-destinations.md) to cross-compile your server executable for Linux. Either:
> Note: To use the Static Linux SDK on macOS, you must [install the open source Swift toolchain from swift.org](https://www.swift.org/documentation/articles/static-linux-getting-started.html#installing-the-sdk)
38
38
39
-
## Add the plugin to your project
39
+
###Add the plugin to your project
40
40
41
41
Swift Container Plugin is distributed as a Swift Package Manager package. Use the `swift package` command to add it to your project:
42
42
@@ -59,7 +59,7 @@ Check that `ContainerImageBuilder` is now available in Swift Package Manager:
59
59
‘build-container-image’ (plugin ‘ContainerImageBuilder’ in package ‘swift-container-plugin)
60
60
```
61
61
62
-
## Add your registry credentials to .netrc
62
+
###Add your registry credentials to .netrc
63
63
64
64
Many registries require authentication in order to push images, or even pull them. The plugin can read your registry credentials from a `.netrc` file in your home directory. You can add a netrc record for each registry you need to use:
65
65
@@ -69,7 +69,7 @@ machine registry.example.com
69
69
password mypassword
70
70
```
71
71
72
-
## Build and package your service
72
+
###Build and package your service
73
73
74
74
`build-container-image` takes care of building your service, packaging it in a container image and uploading it to a container registry, all in one command:
When it finishes, ContainerImageBuilder prints a reference identifying the new image. Any standard container runtime can use the reference to pull and run your service.
112
112
113
-
## Run your service
113
+
###Run your service
114
114
115
115
For example, you could use `podman` to run the service locally, making it available on port 8080:
0 commit comments