Skip to content

Commit

Permalink
Merge pull request #171 from buildpacks/fix/159-use-config
Browse files Browse the repository at this point in the history
Use config for create-builder and package-buildpack
  • Loading branch information
dfreilich committed Jul 23, 2020
1 parent bb1f39b commit 400e52d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/buildpack-author-guide/package-a-buildpack/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ <h3 id="0-grab-the-sample-repo">0. Grab the sample repo</h3>
</blockquote>
<h3 id="4-package-your-buildpack-as-an-image">4. Package your buildpack as an image</h3>
<p>Lastly, we&rsquo;ll run the <code>package-buildpack</code> command to package the buildpack as an OCI image.</p>
<div class="highlight"><pre class="chroma"><code class="language-shell" data-lang="shell">pack package-buildpack my-buildpack --package-config ./package.toml
<div class="highlight"><pre class="chroma"><code class="language-shell" data-lang="shell">pack package-buildpack my-buildpack --config ./package.toml
</code></pre></div><blockquote>
<p><strong>Tip:</strong> You can verify that the image was created by running <code>docker images</code>.</p>
</blockquote>
Expand All @@ -300,7 +300,7 @@ <h3 id="4-package-your-buildpack-as-an-image">4. Package your buildpack as an im
<p>Alternatively, you can run <code>pack package-buildpack</code> with <code>--publish</code> to publish it directly to the registry.</p>
<h3 id="5-package-your-buildpack-as-a-file">5. Package your buildpack as a file</h3>
<p>You can also run <code>package-buildpack</code> with a <code>--format file</code> flag to save the packaged buildpack as a local file.</p>
<div class="highlight"><pre class="chroma"><code class="language-shell" data-lang="shell">pack package-buildpack my-buildpack.cnb --package-config ./package.toml --format file
<div class="highlight"><pre class="chroma"><code class="language-shell" data-lang="shell">pack package-buildpack my-buildpack.cnb --config ./package.toml --format file
</code></pre></div><p>You can then use this file (called a <code>.cnb</code> file) as an input to <code>package-buildpack</code>, among other commands.</p>


Expand Down
2 changes: 1 addition & 1 deletion docs/operator-guide/create-a-builder/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ <h3 id="0-grab-the-sample-repo">0. Grab the sample repo</h3>
</code></pre></div><h3 id="2-create-builder">2. Create builder</h3>
<p>Creating a builder is now as simple as running the following command:</p>
<div class="highlight"><pre class="chroma"><code class="language-bash" data-lang="bash"><span class="c1"># create builder</span>
pack create-builder my-builder:bionic --builder-config ./builder.toml
pack create-builder my-builder:bionic --config ./builder.toml
</code></pre></div><blockquote>
<p><strong>Tip:</strong> <code>create-builder</code> has a <code>--publish</code> flag that can be used to publish the generated builder image to a registry.</p>
</blockquote>
Expand Down

0 comments on commit 400e52d

Please sign in to comment.