Skip to content

Commit b9f1942

Browse files
Update tutorials (#84)
Co-authored-by: heroku-linguist[bot] <136119646+heroku-linguist[bot]@users.noreply.github.com>
1 parent 643f3b9 commit b9f1942

File tree

9 files changed

+276
-275
lines changed

9 files changed

+276
-275
lines changed

docs/dotnet/README.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ $ pack builder inspect heroku/builder:24 | awk '/^Buildpacks:/ {flag=1} /^Detect
6565
Buildpacks:
6666
ID NAME VERSION HOMEPAGE
6767
heroku/deb-packages Heroku .deb Packages 0.0.3 https://github.com/heroku/buildpacks-deb-packages
68-
heroku/dotnet Heroku .NET 0.1.9 https://github.com/heroku/buildpacks-dotnet
68+
heroku/dotnet Heroku .NET 0.1.10 https://github.com/heroku/buildpacks-dotnet
6969
heroku/go Heroku Go 0.5.1 https://github.com/heroku/buildpacks-go
7070
heroku/gradle Heroku Gradle 6.0.4 https://github.com/heroku/buildpacks-jvm
7171
heroku/java Heroku Java 6.0.4 https://github.com/heroku/buildpacks-jvm
@@ -81,8 +81,8 @@ Buildpacks:
8181
heroku/nodejs-yarn Heroku Node.js Yarn 3.4.3 https://github.com/heroku/buildpacks-nodejs
8282
heroku/php Heroku PHP 0.2.0 https://github.com/heroku/buildpacks-php
8383
heroku/procfile Heroku Procfile 3.2.0 https://github.com/heroku/buildpacks-procfile
84-
heroku/python Heroku Python 0.22.0 https://github.com/heroku/buildpacks-python
85-
heroku/ruby Heroku Ruby 5.0.0 https://github.com/heroku/buildpacks-ruby
84+
heroku/python Heroku Python 0.23.0 https://github.com/heroku/buildpacks-python
85+
heroku/ruby Heroku Ruby 5.0.1 https://github.com/heroku/buildpacks-ruby
8686
heroku/sbt Heroku sbt 6.0.4 https://github.com/heroku/buildpacks-jvm
8787
heroku/scala Heroku Scala 6.0.4 https://github.com/heroku/buildpacks-jvm
8888
```
@@ -126,7 +126,7 @@ This tutorial was built using the following commit SHA:
126126

127127
```
128128
$ git log --oneline | head -n1
129-
1957aaf Apply getting started fir guide updates (#37)
129+
42dd66d Bump Npgsql.EntityFrameworkCore.PostgreSQL from 8.0.10 to 8.0.11 (#45)
130130
```
131131
<!-- STOP. This document is autogenerated. Do not manually modify. See the top of the doc for more details. -->
132132
## Build the application image with the pack CLI
@@ -140,7 +140,7 @@ $ pack build my-image-name --path .
140140
Image with name "my-image-name" not found
141141
===> DETECTING
142142
2 of 3 buildpacks participating
143-
heroku/dotnet 0.1.9
143+
heroku/dotnet 0.1.10
144144
heroku/procfile 3.2.0
145145
===> RESTORING
146146
Skipping buildpack layer analysis
@@ -151,22 +151,22 @@ Skipping buildpack layer analysis
151151
- SDK version detection
152152
- Detected .NET file to publish: `/workspace/GettingStarted.sln`
153153
- Inferring version requirement from `/workspace/GettingStarted.sln`
154-
- Detected version requirement: `^8.0`
155-
- Resolved .NET SDK version `8.0.404` (linux-amd64)
154+
- Detected version requirement: `^9.0`
155+
- Resolved .NET SDK version `9.0.102` (linux-amd64)
156156
- SDK installation
157-
- 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)
157+
- 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)
158158
- Verifying SDK checksum
159159
- Installing SDK
160160
- Publish solution
161161
- Using `Release` build configuration
162162
- Running `dotnet publish /workspace/GettingStarted.sln --runtime linux-x64 "-p:PublishDir=bin/publish"`
163163
164164
Determining projects to restore...
165-
Restored /workspace/Frontend/Frontend.csproj (in 11.62 sec).
166-
Frontend -> /workspace/Frontend/bin/Release/net8.0/linux-x64/Frontend.dll
165+
Restored /workspace/Frontend/Frontend.csproj (in 6.9 sec).
166+
Frontend -> /workspace/Frontend/bin/Release/net9.0/linux-x64/Frontend.dll
167167
Frontend -> /workspace/Frontend/bin/publish/
168168
Restoring .NET tools
169-
Tool 'dotnet-ef' (version '8.0.10') was restored. Available commands: dotnet-ef
169+
Tool 'dotnet-ef' (version '8.0.12') was restored. Available commands: dotnet-ef
170170
171171
Restore was successful.
172172
Publishing executable database migration bundle
@@ -176,11 +176,11 @@ Skipping buildpack layer analysis
176176
Done. Migrations Bundle: /workspace/Frontend/bin/publish/efbundle
177177
Don't forget to copy appsettings.json alongside your bundle if you need it to apply migrations.
178178
179-
- Done (29.7s)
179+
- Done (24.3s)
180180
- Setting launch table
181181
- Detecting process types from published artifacts
182182
- Added `Frontend`: bash -c cd Frontend/bin/publish; ./Frontend --urls http://*:$PORT
183-
- Done (finished in 45.0s)
183+
- Done (finished in 29.0s)
184184
185185
## Procfile Buildpack
186186
@@ -199,7 +199,7 @@ Adding label 'io.buildpacks.build.metadata'
199199
Adding label 'io.buildpacks.project.metadata'
200200
Setting default process type 'web'
201201
Saving my-image-name...
202-
*** Images (20d1396ec7ce):
202+
*** Images (9f69d4ae94b1):
203203
my-image-name
204204
Adding cache layer 'heroku/dotnet:nuget-cache'
205205
Adding cache layer 'heroku/dotnet:sdk'
@@ -214,7 +214,7 @@ Verify that you see “Successfully built image my-image-name” at the end of t
214214

215215
```
216216
$ docker image ls --format "table {{.ID}}\t{{.Repository}}\t{{.Tag}}" | grep my-image-name
217-
20d1396ec7ce my-image-name latest
217+
9f69d4ae94b1 my-image-name latest
218218
```
219219
<!-- STOP. This document is autogenerated. Do not manually modify. See the top of the doc for more details. -->
220220
## What does `pack build` do?
@@ -228,7 +228,7 @@ When you run `pack build` with a builder, each buildpack runs a detection script
228228
```
229229
===> DETECTING
230230
2 of 3 buildpacks participating
231-
heroku/dotnet 0.1.9
231+
heroku/dotnet 0.1.10
232232
heroku/procfile 3.2.0
233233
===> RESTORING
234234
Skipping buildpack layer analysis
@@ -254,7 +254,7 @@ $ docker run -it --rm --env PORT=5006 -p 5006:5006 my-image-name
254254
warn: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60]
255255
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
256256
warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
257-
No XML encryptor configured. Key {db133fcd-e7cd-4c0f-930b-cfe501ba7cb7} may be persisted to storage in unencrypted form.
257+
No XML encryptor configured. Key {0828958e-41ab-4998-a1b7-d843372346b6} may be persisted to storage in unencrypted form.
258258
info: Microsoft.Hosting.Lifetime[14]
259259
Now listening on: http://[::]:5006
260260
info: Microsoft.Hosting.Lifetime[0]
@@ -406,8 +406,8 @@ $ pack build my-image-name --path .
406406
===> ANALYZING
407407
Image with name "my-image-name" not found
408408
===> DETECTING
409-
heroku/python 0.22.0
410-
heroku/dotnet 0.1.9
409+
heroku/python 0.23.0
410+
heroku/dotnet 0.1.10
411411
heroku/procfile 3.2.0
412412
===> RESTORING
413413
Skipping buildpack layer analysis
@@ -433,22 +433,22 @@ Running 'pip install -r requirements.txt'
433433
- SDK version detection
434434
- Detected .NET file to publish: `/workspace/GettingStarted.sln`
435435
- Inferring version requirement from `/workspace/GettingStarted.sln`
436-
- Detected version requirement: `^8.0`
437-
- Resolved .NET SDK version `8.0.404` (linux-amd64)
436+
- Detected version requirement: `^9.0`
437+
- Resolved .NET SDK version `9.0.102` (linux-amd64)
438438
- SDK installation
439-
- 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)
439+
- 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)
440440
- Verifying SDK checksum
441441
- Installing SDK
442442
- Publish solution
443443
- Using `Release` build configuration
444444
- Running `dotnet publish /workspace/GettingStarted.sln --runtime linux-x64 "-p:PublishDir=bin/publish"`
445445
446446
Determining projects to restore...
447-
Restored /workspace/Frontend/Frontend.csproj (in 9.43 sec).
448-
Frontend -> /workspace/Frontend/bin/Release/net8.0/linux-x64/Frontend.dll
447+
Restored /workspace/Frontend/Frontend.csproj (in 7.61 sec).
448+
Frontend -> /workspace/Frontend/bin/Release/net9.0/linux-x64/Frontend.dll
449449
Frontend -> /workspace/Frontend/bin/publish/
450450
Restoring .NET tools
451-
Tool 'dotnet-ef' (version '8.0.10') was restored. Available commands: dotnet-ef
451+
Tool 'dotnet-ef' (version '8.0.12') was restored. Available commands: dotnet-ef
452452
453453
Restore was successful.
454454
Publishing executable database migration bundle
@@ -458,11 +458,11 @@ Running 'pip install -r requirements.txt'
458458
Done. Migrations Bundle: /workspace/Frontend/bin/publish/efbundle
459459
Don't forget to copy appsettings.json alongside your bundle if you need it to apply migrations.
460460
461-
- Done (27.5s)
461+
- Done (25.2s)
462462
- Setting launch table
463463
- Detecting process types from published artifacts
464464
- Added `Frontend`: bash -c cd Frontend/bin/publish; ./Frontend --urls http://*:$PORT
465-
- Done (finished in 34.9s)
465+
- Done (finished in 29.4s)
466466
467467
## Procfile Buildpack
468468
@@ -483,7 +483,7 @@ Adding label 'io.buildpacks.build.metadata'
483483
Adding label 'io.buildpacks.project.metadata'
484484
Setting default process type 'web'
485485
Saving my-image-name...
486-
*** Images (f023f5f040be):
486+
*** Images (a79d6ac20078):
487487
my-image-name
488488
Adding cache layer 'heroku/python:pip'
489489
Adding cache layer 'heroku/python:pip-cache'

docs/go/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ $ pack builder inspect heroku/builder:24 | awk '/^Buildpacks:/ {flag=1} /^Detect
6565
Buildpacks:
6666
ID NAME VERSION HOMEPAGE
6767
heroku/deb-packages Heroku .deb Packages 0.0.3 https://github.com/heroku/buildpacks-deb-packages
68-
heroku/dotnet Heroku .NET 0.1.9 https://github.com/heroku/buildpacks-dotnet
68+
heroku/dotnet Heroku .NET 0.1.10 https://github.com/heroku/buildpacks-dotnet
6969
heroku/go Heroku Go 0.5.1 https://github.com/heroku/buildpacks-go
7070
heroku/gradle Heroku Gradle 6.0.4 https://github.com/heroku/buildpacks-jvm
7171
heroku/java Heroku Java 6.0.4 https://github.com/heroku/buildpacks-jvm
@@ -81,8 +81,8 @@ Buildpacks:
8181
heroku/nodejs-yarn Heroku Node.js Yarn 3.4.3 https://github.com/heroku/buildpacks-nodejs
8282
heroku/php Heroku PHP 0.2.0 https://github.com/heroku/buildpacks-php
8383
heroku/procfile Heroku Procfile 3.2.0 https://github.com/heroku/buildpacks-procfile
84-
heroku/python Heroku Python 0.22.0 https://github.com/heroku/buildpacks-python
85-
heroku/ruby Heroku Ruby 5.0.0 https://github.com/heroku/buildpacks-ruby
84+
heroku/python Heroku Python 0.23.0 https://github.com/heroku/buildpacks-python
85+
heroku/ruby Heroku Ruby 5.0.1 https://github.com/heroku/buildpacks-ruby
8686
heroku/sbt Heroku sbt 6.0.4 https://github.com/heroku/buildpacks-jvm
8787
heroku/scala Heroku Scala 6.0.4 https://github.com/heroku/buildpacks-jvm
8888
```
@@ -132,7 +132,7 @@ This tutorial was built using the following commit SHA:
132132

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

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

0 commit comments

Comments
 (0)