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
Move examples into example-bundles repository (getporter#2015)
* Move examples into example-bundles repository
Remove the example bundles in /examples/ and point to the relocated
example bundles in https://github.com/getporter/example-bundles
Signed-off-by: Carolyn Van Slyck <[email protected]>
* Remove examples from the CI pipeline
Now that the examples are moved into example-bundles, remove targets
for building and publishing example bundles from Porter's build.
Signed-off-by: Carolyn Van Slyck <[email protected]>
* Copy exec-outputs as a test bundle
Signed-off-by: Carolyn Van Slyck <[email protected]>
* Update references to moved examples
The example bundles were moved to github.com/getporter/examples, and are
now published to ghcr.io/getporter/examples/NAME. The version number of
most bundles was bumped as well to avoid confusing with existing
bundles.
Signed-off-by: Carolyn Van Slyck <[email protected]>
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -446,7 +446,7 @@ It can be very helpful when figuring out why a command failed because you can se
446
446
In development, you can use the [otel-jaeger bundle] to set up a development instance of Jaeger, which gives you a nice website to see each command run.
Copy file name to clipboardexpand all lines: cmd/porter/bundle.go
+10-10
Original file line number
Diff line number
Diff line change
@@ -140,8 +140,8 @@ Once a bundle has been successfully installed, the install action cannot be repe
140
140
Porter uses the Docker driver as the default runtime for executing a bundle's invocation image, but an alternate driver may be supplied via '--driver/-d' or the PORTER_RUNTIME_DRIVER environment variable.
141
141
For example, the 'debug' driver may be specified, which simply logs the info given to it and then exits.`,
142
142
Example: ` porter bundle install
143
-
porter bundle install MyAppFromReference --reference getporter/kubernetes:v0.1.0 --namespace dev
@@ -198,8 +198,8 @@ The first argument is the installation name to upgrade. This defaults to the nam
198
198
Porter uses the Docker driver as the default runtime for executing a bundle's invocation image, but an alternate driver may be supplied via '--driver/-d' or the PORTER_RUNTIME_DRIVER environment variable.
199
199
For example, the 'debug' driver may be specified, which simply logs the info given to it and then exits.`,
@@ -255,8 +255,8 @@ The first argument is the installation name upon which to invoke the action. Thi
255
255
Porter uses the Docker driver as the default runtime for executing a bundle's invocation image, but an alternate driver may be supplied via '--driver/-d' or the PORTER_RUNTIME_DRIVER environment variable.
256
256
For example, the 'debug' driver may be specified, which simply logs the info given to it and then exits.`,
@@ -312,8 +312,8 @@ The first argument is the installation name to uninstall. This defaults to the n
312
312
Porter uses the Docker driver as the default runtime for executing a bundle's invocation image, but an alternate driver may be supplied via '--driver/-d'' or the PORTER_RUNTIME_DRIVER environment variable.
313
313
For example, the 'debug' driver may be specified, which simply logs the info given to it and then exits.`,
* `version`: The version of the bundle, uses [semver](https://semver.org). A leading v prefix may optionally be used.
57
57
* `registry`: The registry to use for publishing the bundle. The format is `REGISTRY_HOST/ORG`.
58
-
Both the final bundle reference and invocation image name will be based on this value.
58
+
The final bundle reference will be based on this value.
59
59
For example, if the bundle name is `porter-hello`, registry is `getporter` and the version is `0.1.0`,
60
-
the bundle reference will be `getporter/porter-hello:v0.1.0` and the invocation image name will be `getporter/porter-hello-installer:v0.1.0`
60
+
the bundle reference will be `ghcr.io/getporter/examples/porter-hello:v0.2.0`.
61
61
* `reference`: OPTIONAL. The bundle reference, taking precedence over any values set for the `registry`, `name` fields. The format is `REGISTRY_HOST/ORG/NAME`. The recommended pattern is to let the Docker tag be auto-derived from the `version` field. However, a full reference with a Docker tag included may also be specified.
62
-
The invocation image name will also be based on this value when set. For example, if the `reference` is
63
-
`getporter/porter-hello`, then the final invocation image name will be `getporter/porter-hello-installer:v0.1.0`.
64
62
65
63
When the version is used to default the tag, and it contains a plus sign (+), the plus sign is replaced with an underscore because while + is a valid semver delimiter for the build metadata, it is not an allowed character in a tag.
66
64
* `dockerfile`: OPTIONAL. The relative path to a Dockerfile to use as a template during `porter build`.
Copy file name to clipboardexpand all lines: docs/content/blog/migrate-from-docker-app.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -135,7 +135,7 @@ We will use the [docker-compose mixin] to migrate an existing Docker App to Port
135
135
136
136
1. So far we have been working inside the "developer iteration loop", where you can edit the bundle on your local filesystem and deploy it to your developer environment to test it.
137
137
Once the bundle is stable, the next step is to publish it to an OCI registry so that others can install your bundle using its reference.
138
-
All of the porter commands accept a flag, \--reference, for example `porter install --reference getporter/porter-hello:v0.1.1` so that you do not need to distribute the bundle files themselves.
138
+
All of the porter commands accept a flag, \--reference, for example `porter install --reference ghcr.io/getporter/examples/porter-hello:v0.2` so that you do not need to distribute the bundle files themselves.
139
139
140
140
1. When you are ready to share your bundle with others, select which OCI registry where you will host the bundle, for example, `ghcr.io/getporter` or on Docker Hub under your username `carolynvs`.
141
141
Edit your porter.yaml and set the registry field to the destination registry.
@@ -144,7 +144,7 @@ We will use the [docker-compose mixin] to migrate an existing Docker App to Port
144
144
name: my-docker-app
145
145
version: 0.1.0
146
146
description: My amazing docker app
147
-
registry: ghcr.io/getporter
147
+
registry: carolynvs
148
148
```
149
149
150
150
1. Publish your bundle to the destination registry with `porter publish`.
0 commit comments