Skip to content

Commit

Permalink
Update tutorials (#84)
Browse files Browse the repository at this point in the history
Co-authored-by: heroku-linguist[bot] <136119646+heroku-linguist[bot]@users.noreply.github.com>
  • Loading branch information
heroku-linguist[bot] authored Jan 20, 2025
1 parent 643f3b9 commit b9f1942
Show file tree
Hide file tree
Showing 9 changed files with 276 additions and 275 deletions.
56 changes: 28 additions & 28 deletions docs/dotnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ $ pack builder inspect heroku/builder:24 | awk '/^Buildpacks:/ {flag=1} /^Detect
Buildpacks:
ID NAME VERSION HOMEPAGE
heroku/deb-packages Heroku .deb Packages 0.0.3 https://github.com/heroku/buildpacks-deb-packages
heroku/dotnet Heroku .NET 0.1.9 https://github.com/heroku/buildpacks-dotnet
heroku/dotnet Heroku .NET 0.1.10 https://github.com/heroku/buildpacks-dotnet
heroku/go Heroku Go 0.5.1 https://github.com/heroku/buildpacks-go
heroku/gradle Heroku Gradle 6.0.4 https://github.com/heroku/buildpacks-jvm
heroku/java Heroku Java 6.0.4 https://github.com/heroku/buildpacks-jvm
Expand All @@ -81,8 +81,8 @@ Buildpacks:
heroku/nodejs-yarn Heroku Node.js Yarn 3.4.3 https://github.com/heroku/buildpacks-nodejs
heroku/php Heroku PHP 0.2.0 https://github.com/heroku/buildpacks-php
heroku/procfile Heroku Procfile 3.2.0 https://github.com/heroku/buildpacks-procfile
heroku/python Heroku Python 0.22.0 https://github.com/heroku/buildpacks-python
heroku/ruby Heroku Ruby 5.0.0 https://github.com/heroku/buildpacks-ruby
heroku/python Heroku Python 0.23.0 https://github.com/heroku/buildpacks-python
heroku/ruby Heroku Ruby 5.0.1 https://github.com/heroku/buildpacks-ruby
heroku/sbt Heroku sbt 6.0.4 https://github.com/heroku/buildpacks-jvm
heroku/scala Heroku Scala 6.0.4 https://github.com/heroku/buildpacks-jvm
```
Expand Down Expand Up @@ -126,7 +126,7 @@ This tutorial was built using the following commit SHA:

```
$ git log --oneline | head -n1
1957aaf Apply getting started fir guide updates (#37)
42dd66d Bump Npgsql.EntityFrameworkCore.PostgreSQL from 8.0.10 to 8.0.11 (#45)
```
<!-- STOP. This document is autogenerated. Do not manually modify. See the top of the doc for more details. -->
## Build the application image with the pack CLI
Expand All @@ -140,7 +140,7 @@ $ pack build my-image-name --path .
Image with name "my-image-name" not found
===> DETECTING
2 of 3 buildpacks participating
heroku/dotnet 0.1.9
heroku/dotnet 0.1.10
heroku/procfile 3.2.0
===> RESTORING
Skipping buildpack layer analysis
Expand All @@ -151,22 +151,22 @@ Skipping buildpack layer analysis
- SDK version detection
- Detected .NET file to publish: `/workspace/GettingStarted.sln`
- Inferring version requirement from `/workspace/GettingStarted.sln`
- Detected version requirement: `^8.0`
- Resolved .NET SDK version `8.0.404` (linux-amd64)
- Detected version requirement: `^9.0`
- Resolved .NET SDK version `9.0.102` (linux-amd64)
- SDK installation
- Downloading SDK from https://download.visualstudio.microsoft.com/download/pr/4e3b04aa-c015-4e06-a42e-05f9f3c54ed2/74d1bb68e330eea13ecfc47f7cf9aeb7/dotnet-sdk-8.0.404-linux-x64.tar.gz .............. (11.9s)
- Downloading SDK from https://download.visualstudio.microsoft.com/download/pr/0e717d01-aad7-475a-8b67-50c59cf043b1/6eaa1c636e15ec8e1b97b3438360c770/dotnet-sdk-9.0.102-linux-x64.tar.gz .... (1.5s)
- Verifying SDK checksum
- Installing SDK
- Publish solution
- Using `Release` build configuration
- Running `dotnet publish /workspace/GettingStarted.sln --runtime linux-x64 "-p:PublishDir=bin/publish"`
Determining projects to restore...
Restored /workspace/Frontend/Frontend.csproj (in 11.62 sec).
Frontend -> /workspace/Frontend/bin/Release/net8.0/linux-x64/Frontend.dll
Restored /workspace/Frontend/Frontend.csproj (in 6.9 sec).
Frontend -> /workspace/Frontend/bin/Release/net9.0/linux-x64/Frontend.dll
Frontend -> /workspace/Frontend/bin/publish/
Restoring .NET tools
Tool 'dotnet-ef' (version '8.0.10') was restored. Available commands: dotnet-ef
Tool 'dotnet-ef' (version '8.0.12') was restored. Available commands: dotnet-ef
Restore was successful.
Publishing executable database migration bundle
Expand All @@ -176,11 +176,11 @@ Skipping buildpack layer analysis
Done. Migrations Bundle: /workspace/Frontend/bin/publish/efbundle
Don't forget to copy appsettings.json alongside your bundle if you need it to apply migrations.
- Done (29.7s)
- Done (24.3s)
- Setting launch table
- Detecting process types from published artifacts
- Added `Frontend`: bash -c cd Frontend/bin/publish; ./Frontend --urls http://*:$PORT
- Done (finished in 45.0s)
- Done (finished in 29.0s)
## Procfile Buildpack
Expand All @@ -199,7 +199,7 @@ Adding label 'io.buildpacks.build.metadata'
Adding label 'io.buildpacks.project.metadata'
Setting default process type 'web'
Saving my-image-name...
*** Images (20d1396ec7ce):
*** Images (9f69d4ae94b1):
my-image-name
Adding cache layer 'heroku/dotnet:nuget-cache'
Adding cache layer 'heroku/dotnet:sdk'
Expand All @@ -214,7 +214,7 @@ Verify that you see “Successfully built image my-image-name” at the end of t

```
$ docker image ls --format "table {{.ID}}\t{{.Repository}}\t{{.Tag}}" | grep my-image-name
20d1396ec7ce my-image-name latest
9f69d4ae94b1 my-image-name latest
```
<!-- STOP. This document is autogenerated. Do not manually modify. See the top of the doc for more details. -->
## What does `pack build` do?
Expand All @@ -228,7 +228,7 @@ When you run `pack build` with a builder, each buildpack runs a detection script
```
===> DETECTING
2 of 3 buildpacks participating
heroku/dotnet 0.1.9
heroku/dotnet 0.1.10
heroku/procfile 3.2.0
===> RESTORING
Skipping buildpack layer analysis
Expand All @@ -254,7 +254,7 @@ $ docker run -it --rm --env PORT=5006 -p 5006:5006 my-image-name
warn: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60]
Storing keys in a directory '/home/heroku/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed. For more information go to https://aka.ms/aspnet/dataprotectionwarning
warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
No XML encryptor configured. Key {db133fcd-e7cd-4c0f-930b-cfe501ba7cb7} may be persisted to storage in unencrypted form.
No XML encryptor configured. Key {0828958e-41ab-4998-a1b7-d843372346b6} may be persisted to storage in unencrypted form.
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://[::]:5006
info: Microsoft.Hosting.Lifetime[0]
Expand Down Expand Up @@ -406,8 +406,8 @@ $ pack build my-image-name --path .
===> ANALYZING
Image with name "my-image-name" not found
===> DETECTING
heroku/python 0.22.0
heroku/dotnet 0.1.9
heroku/python 0.23.0
heroku/dotnet 0.1.10
heroku/procfile 3.2.0
===> RESTORING
Skipping buildpack layer analysis
Expand All @@ -433,22 +433,22 @@ Running 'pip install -r requirements.txt'
- SDK version detection
- Detected .NET file to publish: `/workspace/GettingStarted.sln`
- Inferring version requirement from `/workspace/GettingStarted.sln`
- Detected version requirement: `^8.0`
- Resolved .NET SDK version `8.0.404` (linux-amd64)
- Detected version requirement: `^9.0`
- Resolved .NET SDK version `9.0.102` (linux-amd64)
- SDK installation
- Downloading SDK from https://download.visualstudio.microsoft.com/download/pr/4e3b04aa-c015-4e06-a42e-05f9f3c54ed2/74d1bb68e330eea13ecfc47f7cf9aeb7/dotnet-sdk-8.0.404-linux-x64.tar.gz ...... (3.9s)
- Downloading SDK from https://download.visualstudio.microsoft.com/download/pr/0e717d01-aad7-475a-8b67-50c59cf043b1/6eaa1c636e15ec8e1b97b3438360c770/dotnet-sdk-9.0.102-linux-x64.tar.gz ... (0.9s)
- Verifying SDK checksum
- Installing SDK
- Publish solution
- Using `Release` build configuration
- Running `dotnet publish /workspace/GettingStarted.sln --runtime linux-x64 "-p:PublishDir=bin/publish"`
Determining projects to restore...
Restored /workspace/Frontend/Frontend.csproj (in 9.43 sec).
Frontend -> /workspace/Frontend/bin/Release/net8.0/linux-x64/Frontend.dll
Restored /workspace/Frontend/Frontend.csproj (in 7.61 sec).
Frontend -> /workspace/Frontend/bin/Release/net9.0/linux-x64/Frontend.dll
Frontend -> /workspace/Frontend/bin/publish/
Restoring .NET tools
Tool 'dotnet-ef' (version '8.0.10') was restored. Available commands: dotnet-ef
Tool 'dotnet-ef' (version '8.0.12') was restored. Available commands: dotnet-ef
Restore was successful.
Publishing executable database migration bundle
Expand All @@ -458,11 +458,11 @@ Running 'pip install -r requirements.txt'
Done. Migrations Bundle: /workspace/Frontend/bin/publish/efbundle
Don't forget to copy appsettings.json alongside your bundle if you need it to apply migrations.
- Done (27.5s)
- Done (25.2s)
- Setting launch table
- Detecting process types from published artifacts
- Added `Frontend`: bash -c cd Frontend/bin/publish; ./Frontend --urls http://*:$PORT
- Done (finished in 34.9s)
- Done (finished in 29.4s)
## Procfile Buildpack
Expand All @@ -483,7 +483,7 @@ Adding label 'io.buildpacks.build.metadata'
Adding label 'io.buildpacks.project.metadata'
Setting default process type 'web'
Saving my-image-name...
*** Images (f023f5f040be):
*** Images (a79d6ac20078):
my-image-name
Adding cache layer 'heroku/python:pip'
Adding cache layer 'heroku/python:pip-cache'
Expand Down
22 changes: 11 additions & 11 deletions docs/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ $ pack builder inspect heroku/builder:24 | awk '/^Buildpacks:/ {flag=1} /^Detect
Buildpacks:
ID NAME VERSION HOMEPAGE
heroku/deb-packages Heroku .deb Packages 0.0.3 https://github.com/heroku/buildpacks-deb-packages
heroku/dotnet Heroku .NET 0.1.9 https://github.com/heroku/buildpacks-dotnet
heroku/dotnet Heroku .NET 0.1.10 https://github.com/heroku/buildpacks-dotnet
heroku/go Heroku Go 0.5.1 https://github.com/heroku/buildpacks-go
heroku/gradle Heroku Gradle 6.0.4 https://github.com/heroku/buildpacks-jvm
heroku/java Heroku Java 6.0.4 https://github.com/heroku/buildpacks-jvm
Expand All @@ -81,8 +81,8 @@ Buildpacks:
heroku/nodejs-yarn Heroku Node.js Yarn 3.4.3 https://github.com/heroku/buildpacks-nodejs
heroku/php Heroku PHP 0.2.0 https://github.com/heroku/buildpacks-php
heroku/procfile Heroku Procfile 3.2.0 https://github.com/heroku/buildpacks-procfile
heroku/python Heroku Python 0.22.0 https://github.com/heroku/buildpacks-python
heroku/ruby Heroku Ruby 5.0.0 https://github.com/heroku/buildpacks-ruby
heroku/python Heroku Python 0.23.0 https://github.com/heroku/buildpacks-python
heroku/ruby Heroku Ruby 5.0.1 https://github.com/heroku/buildpacks-ruby
heroku/sbt Heroku sbt 6.0.4 https://github.com/heroku/buildpacks-jvm
heroku/scala Heroku Scala 6.0.4 https://github.com/heroku/buildpacks-jvm
```
Expand Down Expand Up @@ -132,7 +132,7 @@ This tutorial was built using the following commit SHA:

```
$ git log --oneline | head -n1
f4f337a Add DATABASE_URL to .env for local dev (#67)
9f742ab Update to go1.23 (#68)
```
<!-- STOP. This document is autogenerated. Do not manually modify. See the top of the doc for more details. -->
## Build the application image with the pack CLI
Expand All @@ -153,11 +153,11 @@ Skipping buildpack layer analysis
===> BUILDING
[Reading build configuration]
Detected Go version requirement: =1.20
Resolved Go version: go1.20.14 (linux-amd64)
Detected Go version requirement: =1.23
Resolved Go version: go1.23.4 (linux-amd64)
[Installing Go distribution]
Installing go1.20.14 (linux-amd64) from https://go.dev/dl/go1.20.14.linux-amd64.tar.gz
Installing go1.23.4 (linux-amd64) from https://go.dev/dl/go1.23.4.linux-amd64.tar.gz
[Building Go binaries]
Using vendored Go modules
Expand All @@ -184,7 +184,7 @@ Adding label 'io.buildpacks.build.metadata'
Adding label 'io.buildpacks.project.metadata'
Setting default process type 'web'
Saving my-image-name...
*** Images (c6e913a3096b):
*** Images (ecc30fe9bed9):
my-image-name
Adding cache layer 'heroku/go:go_build'
Adding cache layer 'heroku/go:go_dist'
Expand All @@ -199,7 +199,7 @@ Verify that you see “Successfully built image my-image-name” at the end of t

```
$ docker image ls --format "table {{.ID}}\t{{.Repository}}\t{{.Tag}}" | grep my-image-name
c6e913a3096b my-image-name latest
ecc30fe9bed9 my-image-name latest
```
<!-- STOP. This document is autogenerated. Do not manually modify. See the top of the doc for more details. -->
## What does `pack build` do?
Expand Down Expand Up @@ -241,10 +241,10 @@ $ docker run -it --rm --env PORT=5006 -p 5006:5006 my-image-name
- using code: gin.SetMode(gin.ReleaseMode)
[GIN-debug] Loaded HTML Templates (4):
-
- header.tmpl.html
- index.tmpl.html
- nav.tmpl.html
-
- header.tmpl.html
[GIN-debug] GET /static/*filepath --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (2 handlers)
[GIN-debug] HEAD /static/*filepath --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (2 handlers)
Expand Down
Loading

0 comments on commit b9f1942

Please sign in to comment.