Skip to content

Commit

Permalink
Fix commands not showing in output
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Apr 29, 2024
1 parent aecf78d commit 688c1ae
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
6 changes: 6 additions & 0 deletions test/fixtures/cnb/ruby/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ Verify you're in the correct directory:
```
:::>> $ ls
```

This tutorial was built using the following commit SHA:

```
:::>> $ git log --oneline | head -n1
```
2 changes: 1 addition & 1 deletion test/fixtures/cnb/shared/install_pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ We assume you have [docker installed](https://docs.docker.com/engine/install/) a
:::>- $ brew install buildpacks/tap/pack
```

Ensure that it is installed correctly:
Ensure that `pack` is installed correctly:

```
:::>> $ pack --version
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/cnb/shared/pack_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Now build an image named `my-image-name` by executing the heroku builder against
`pack build` command:

```
:::-- $ docker rmi -f my-image-name
$ pack build my-image-name --path .
:::-- $ docker rmi -f my-image-name
:::-- $ pack build my-image-name --path . &> build_output.txt
:::-> $ cat build_output.txt
```
Expand Down
3 changes: 2 additions & 1 deletion test/fixtures/cnb/shared/use_the_image.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Even though we used `pack` and CNBs to build our image, it can be run with your
By default, images will be booted into a web server configuration. You can launch the app we just built by running:

```
:::>> background.start("docker run -it --rm --env PORT=9292 -p 9292:9292 my-image-name", name: "docker_server")
$ docker run -it --rm --platform linux/amd64 --env PORT=9292 -p 9292:9292 my-image-name
:::-> background.start("docker run --rm --platform linux/amd64 --env PORT=9292 -p 9292:9292 my-image-name", name: "docker_server")
:::-- $ sleep 10
:::-> background.log.read(name: "docker_server")
```
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/cnb/shared/what_is_a_builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@ You can view the contents of a builder via the command `pack builder inspect`. F
> Your output version numbers may differ.
This output shows the various buildpacks that represent the different languages that are supported by this builder such as `heroku/go` and `heroku/nodejs-engine`.


<!--
Debug: Output the SHA of the builder:
```
:::>> $ docker inspect --format='{{index .RepoDigests 0}}' heroku/builder:22
```
-->

0 comments on commit 688c1ae

Please sign in to comment.