Skip to content

Commit

Permalink
Merge pull request #639 from buildpacks/feat/remove-stacks
Browse files Browse the repository at this point in the history
Bump to buildpack API version that removes stacks
  • Loading branch information
AidanDelaney authored Jan 18, 2024
2 parents a0b47a6 + 0ec23c2 commit 679709d
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions content/docs/app-developer-guide/using-inline-buildpacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ version = "1.0"
id = "me/rake-tasks"

[io.buildpacks.group.script]
api = "0.6"
api = "0.10"
inline = "rake package"
```

Expand All @@ -38,7 +38,7 @@ Inline buildpacks aren't constrained to a single command, however. You can defin
id = "me/cleanup"

[io.buildpacks.group.script]
api = "0.9"
api = "0.10"
inline = """
set -e
source scripts/utils.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ First, annotate the `buildpack.toml` to specify that it emits CycloneDX:
<!-- test:file=node-js-buildpack/buildpack.toml -->
```toml
# Buildpack API version
api = "0.8"
api = "0.10"

# Buildpack ID and metadata
[buildpack]
Expand Down Expand Up @@ -144,7 +144,7 @@ EOL
cat >> "${CNB_LAYERS_DIR}/launch.toml" << EOL
[[processes]]
type = "web"
command = "node app.js"
command = ["node", "app.js"]
default = true
EOL

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Example:
<!-- test:exec -->
```bash
pack buildpack new examples/node-js \
--api 0.8 \
--api 0.10 \
--path node-js-buildpack \
--version 0.0.1 \
--stacks io.buildpacks.samples.stacks.jammy
Expand All @@ -40,7 +40,7 @@ You will have `node-js-buildpack/buildpack.toml`<!--+"{{open}}"+--> in your buil
<!-- test:file=node-js-buildpack/buildpack.toml -->
```toml
# Buildpack API version
api = "0.8"
api = "0.10"

# Buildpack ID and metadata
[buildpack]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ cat > "${CNB_LAYERS_DIR}/launch.toml" << EOL
# our web process
[[processes]]
type = "web"
command = "node app.js"
command = ["node", "app.js"]
default = true
# our debug process
[[processes]]
type = "debug"
command = "node --inspect app.js"
command = ["node", "--inspect", "app.js"]
EOL
```

Expand Down Expand Up @@ -121,7 +121,7 @@ EOL
cat >> "${CNB_LAYERS_DIR}/launch.toml" << EOL
[[processes]]
type = "web"
command = "node app.js"
command = ["node", "app.js"]
default = true
EOL
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To make your app runnable, a default start command must be set. You'll need to a
cat > "${CNB_LAYERS_DIR}/launch.toml" << EOL
[[processes]]
type = "web"
command = "node app.js"
command = ["node", "app.js"]
default = true
EOL

Expand Down Expand Up @@ -48,7 +48,7 @@ echo -e '[types]\nlaunch = true' > "${CNB_LAYERS_DIR}/node-js.toml"
cat > "${CNB_LAYERS_DIR}/launch.toml" << EOL
[[processes]]
type = "web"
command = "node app.js"
command = ["node", "app.js"]
default = true
EOL
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ EOL
cat >> "${CNB_LAYERS_DIR}/launch.toml" << EOL
[[processes]]
type = "web"
command = "node app.js"
command = ["node", "app.js"]
default = true
EOL
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ cat > "${CNB_LAYERS_DIR}/launch.toml" << EOL
# our web process
[[processes]]
type = "web"
command = "node app.js"
command = ["node", "app.js"]
default = true
# our debug process
[[processes]]
type = "worker"
command = "node --inspect app.js"
command = ["node", "--inspect", "app.js"]
EOL

# ...
Expand Down Expand Up @@ -58,13 +58,13 @@ cat > "${CNB_LAYERS_DIR}/launch.toml" << EOL
# our web process
[[processes]]
type = "web"
command = "node app.js"
command = ["node", "app.js"]
default = true
# our debug process
[[processes]]
type = "debug"
command = "node --inspect app.js"
command = ["node", "--inspect", "app.js"]
EOL
```

Expand Down

0 comments on commit 679709d

Please sign in to comment.