Skip to content

Commit

Permalink
More CNB fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed May 1, 2024
1 parent 8a96da7 commit c19dcef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/cnb/ruby/what_is_pack_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
> [!NOTE]
> Skip ahead if you want to run the application first and get into the details later.
When you run `pack build` with a builder, each shared runs a detection script to determine if it should be eligible to build the application. In our case the `heroku/ruby` buildpack found a `Gemfile.lock` file and `heroku/nodejs-engine` buildpack found a `package.json` file on disk. As a result, both buildpacks have enough information to install Ruby and Node dependencies. You can view a list of the buildpacks used in the output above:
When you run `pack build` with a builder, each buildpack runs a detection script to determine if it should be eligible to build the application. In our case the `heroku/ruby` buildpack found a `Gemfile.lock` file and `heroku/nodejs-engine` buildpack found a `package.json` file on disk. As a result, both buildpacks have enough information to install Ruby and Node dependencies. You can view a list of the buildpacks used in the output above:

```
:::-> $ grep DETECTING -A5 ./build_output.txt
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/cnb/shared/configure_builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You can view your default builder at any time:
:::>> $ pack config default-builder
```

The following tutorial is built on amd64 architecture (also known as x86). If you are building on a machine with different architecture (such as arm64/aarch64 for a mac) you will need to tell Docker to use `linux/amd64` architecture. You can do this via a `--platform linux/amd64` flag or by exporting an environment variable:
The following tutorial is built on amd64 architecture (also known as x86). If you are building on a machine with different architecture (such as arm64/aarch64 for a Mac) you will need to tell Docker to use `linux/amd64` architecture. You can do this via a `--platform linux/amd64` flag or by exporting an environment variable:

```
$ export DOCKER_DEFAULT_PLATFORM=linux/amd64
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/cnb/shared/use_the_image.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $ docker run -it --rm --env PORT=9292 -p 9292:9292 my-image-name
:::-> background.log.read(name: "docker_server")
```

Now when you visit http://localhost:9292 you should see a working web application:
Now when you visit [http://localhost:9292](http://localhost:9292) you should see a working web application:

```
:::>> website.visit(name: "localhost", url: "http://localhost:9292")
Expand Down

0 comments on commit c19dcef

Please sign in to comment.