Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ USAGE:
ARGS:
[name] Name of the application (defaults to build-source's directory name)
[builder=paketobuildpacks/builder-jammy-base:latest] Builder image to use
[run-image=paketobuildpacks/run-jammy-base:latest] Run image to use
[dockerfile=Dockerfile] Path to the Dockerfile
[force-builder=false] Force the use of the builder image (even if a Dockerfile is present)
[build-source=.] Path to the build context
Expand Down
1 change: 1 addition & 0 deletions docs/commands/container.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ scw container deploy [arg=value ...]
|------|---|-------------|
| name | | Name of the application (defaults to build-source's directory name) |
| builder | Default: `paketobuildpacks/builder-jammy-base:latest` | Builder image to use |
| run-image | Default: `paketobuildpacks/run-jammy-base:latest` | Run image to use |
| dockerfile | Default: `Dockerfile` | Path to the Dockerfile |
| force-builder | Default: `false` | Force the use of the builder image (even if a Dockerfile is present) |
| build-source | Default: `.` | Path to the build context |
Expand Down
7 changes: 7 additions & 0 deletions internal/namespaces/container/v1beta1/custom_deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type containerDeployRequest struct {
Name string

Builder string
RunImage string
Dockerfile string
ForceBuilder bool

Expand Down Expand Up @@ -67,6 +68,11 @@ func containerDeployCommand() *core.Command {
Short: "Builder image to use",
Default: core.DefaultValueSetter("paketobuildpacks/builder-jammy-base:latest"),
},
{
Name: "run-image",
Short: "Run image to use",
Default: core.DefaultValueSetter("paketobuildpacks/run-jammy-base:latest"),
},
{
Name: "dockerfile",
Short: "Path to the Dockerfile",
Expand Down Expand Up @@ -372,6 +378,7 @@ func DeployStepBuildpackBuildImage(
AppPath: data.Args.BuildSource,
Builder: data.Args.Builder,
Image: tag,
RunImage: data.Args.RunImage,
ClearCache: !data.Args.Cache,
TrustBuilder: func(string) bool { return true },
})
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
Your application is now available at https://appclitctnrdeployfpzayj9zdx-app-cli-t-ctnr-deploy-fp.functions.fnc.fr-par.scw.cloud
Your application is now available at https://appclitctnrdeployfpv7kvie1v-app-cli-t-ctnr-deploy-fp.functions.fnc.fr-par.scw.cloud

🟩🟩🟩 JSON STDOUT 🟩🟩🟩
"Your application is now available at https://appclitctnrdeployfpzayj9zdx-app-cli-t-ctnr-deploy-fp.functions.fnc.fr-par.scw.cloud\n"
"Your application is now available at https://appclitctnrdeployfpv7kvie1v-app-cli-t-ctnr-deploy-fp.functions.fnc.fr-par.scw.cloud\n"

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
Your application is now available at https://clitctnrdeploybanaloas4l-cli-t-ctnr-deploy-ba.functions.fnc.fr-par.scw.cloud
Your application is now available at https://clitctnrdeploybao7dknudy-cli-t-ctnr-deploy-ba.functions.fnc.fr-par.scw.cloud

🟩🟩🟩 JSON STDOUT 🟩🟩🟩
"Your application is now available at https://clitctnrdeploybanaloas4l-cli-t-ctnr-deploy-ba.functions.fnc.fr-par.scw.cloud\n"
"Your application is now available at https://clitctnrdeploybao7dknudy-cli-t-ctnr-deploy-ba.functions.fnc.fr-par.scw.cloud\n"
13,202 changes: 2,469 additions & 10,733 deletions internal/namespaces/container/v1beta1/testdata/test-deploy-buildpack.cassette.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
Your application is now available at https://clitctnrdeploybp5rwcoxvx-cli-t-ctnr-deploy-bp.functions.fnc.fr-par.scw.cloud
Your application is now available at https://clitctnrdeploybpzlimduyi-cli-t-ctnr-deploy-bp.functions.fnc.fr-par.scw.cloud

🟩🟩🟩 JSON STDOUT 🟩🟩🟩
"Your application is now available at https://clitctnrdeploybp5rwcoxvx-cli-t-ctnr-deploy-bp.functions.fnc.fr-par.scw.cloud\n"
"Your application is now available at https://clitctnrdeploybpzlimduyi-cli-t-ctnr-deploy-bp.functions.fnc.fr-par.scw.cloud\n"

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
Your application is now available at https://clitctnrdeploysy040pszu-cli-t-ctnr-deploy-s.functions.fnc.fr-par.scw.cloud
Your application is now available at https://clitctnrdeploysnwevqmkl-cli-t-ctnr-deploy-s.functions.fnc.fr-par.scw.cloud

🟩🟩🟩 JSON STDOUT 🟩🟩🟩
"Your application is now available at https://clitctnrdeploysy040pszu-cli-t-ctnr-deploy-s.functions.fnc.fr-par.scw.cloud\n"
"Your application is now available at https://clitctnrdeploysnwevqmkl-cli-t-ctnr-deploy-s.functions.fnc.fr-par.scw.cloud\n"
Loading
Loading