Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tutorials #68

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 19 additions & 9 deletions docs/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Instead modify the rundoc script and re-run it.

Command: /Users/rschneeman/.gem/ruby/3.3.1/bin/rundoc docs/src/go/RUNDOC.md
Command: /home/runner/work/buildpacks/buildpacks/vendor/bundle/ruby/3.3.0/bin/rundoc docs/src/go/RUNDOC.md
STOP -->

# Heroku Go Cloud Native Buildpack (CNB) Tutorial
Expand Down Expand Up @@ -95,7 +95,12 @@ $ cd go-getting-started
Verify you're in the correct directory:

```
$ ls
$ ls -A
.env
.git
.gitattributes
.github
.gitignore
Dockerfile
Makefile
Procfile
Expand Down Expand Up @@ -137,10 +142,10 @@ Skipping buildpack layer analysis

[Reading build configuration]
Detected Go version requirement: =1.20
Resolved Go version: go1.20.14 (linux-arm64)
Resolved Go version: go1.20.14 (linux-amd64)

[Installing Go distribution]
Installing go1.20.14 (linux-arm64) from https://go.dev/dl/go1.20.14.linux-arm64.tar.gz
Installing go1.20.14 (linux-amd64) from https://go.dev/dl/go1.20.14.linux-amd64.tar.gz

[Building Go binaries]
Using vendored Go modules
Expand All @@ -164,7 +169,7 @@ Adding label 'io.buildpacks.build.metadata'
Adding label 'io.buildpacks.project.metadata'
Setting default process type 'web'
Saving my-image-name...
*** Images (6254e65c3c92):
*** Images (eaf01fb7fdf8):
my-image-name
Adding cache layer 'heroku/go:go_build'
Adding cache layer 'heroku/go:go_dist'
Expand All @@ -179,7 +184,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
6254e65c3c92 my-image-name latest
eaf01fb7fdf8 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 @@ -221,10 +226,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
-

[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 Expand Up @@ -263,7 +268,12 @@ $ docker run -it --rm my-image-name bash
Now you can inspect the container interactively. For example, you can see the files on disk with `ls`:

```
$ ls
$ ls -A
.env
.git
.gitattributes
.github
.gitignore
Dockerfile
Makefile
Procfile
Expand Down Expand Up @@ -344,7 +354,7 @@ Most buildpacks rely on existing community standards to allow you to configure y

The `Procfile` is a configuration file format that was [introduced by Heroku in 2011](https://devcenter.heroku.com/articles/procfile), you can now use this behavior on your CNB-powered application via the `heroku/procfile`, which like the rest of the buildpacks in our builder [is open source](https://github.com/heroku/buildpacks-procfile). The `heroku/procfile` buildpack allows you to configure your web startup process.

This is the `Procfile` of the getting started guide:
This is the `web` entry in the getting started guide's `Procfile`:

```
web: go-getting-started
Expand Down
Binary file modified docs/go/screenshots/screenshot_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions vendor/bundle/ruby/3.3.0/bin/dotenv
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env ruby
#
# This file was generated by RubyGems.
#
# The application 'dotenv' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'

Gem.use_gemdeps

version = ">= 0.a"

str = ARGV.first
if str
str = str.b[/\A_(.*)_\z/, 1]
if str and Gem::Version.correct?(str)
version = str
ARGV.shift
end
end

if Gem.respond_to?(:activate_bin_path)
load Gem.activate_bin_path('dotenv', 'dotenv', version)
else
gem "dotenv", version
load Gem.bin_path("dotenv", "dotenv", version)
end
29 changes: 29 additions & 0 deletions vendor/bundle/ruby/3.3.0/bin/jmespath.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env ruby
#
# This file was generated by RubyGems.
#
# The application 'jmespath' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'

Gem.use_gemdeps

version = ">= 0.a"

str = ARGV.first
if str
str = str.b[/\A_(.*)_\z/, 1]
if str and Gem::Version.correct?(str)
version = str
ARGV.shift
end
end

if Gem.respond_to?(:activate_bin_path)
load Gem.activate_bin_path('jmespath', 'jmespath.rb', version)
else
gem "jmespath", version
load Gem.bin_path("jmespath", "jmespath.rb", version)
end
29 changes: 29 additions & 0 deletions vendor/bundle/ruby/3.3.0/bin/nokogiri
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env ruby
#
# This file was generated by RubyGems.
#
# The application 'nokogiri' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'

Gem.use_gemdeps

version = ">= 0.a"

str = ARGV.first
if str
str = str.b[/\A_(.*)_\z/, 1]
if str and Gem::Version.correct?(str)
version = str
ARGV.shift
end
end

if Gem.respond_to?(:activate_bin_path)
load Gem.activate_bin_path('nokogiri', 'nokogiri', version)
else
gem "nokogiri", version
load Gem.bin_path("nokogiri", "nokogiri", version)
end
29 changes: 29 additions & 0 deletions vendor/bundle/ruby/3.3.0/bin/racc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env ruby
#
# This file was generated by RubyGems.
#
# The application 'racc' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'

Gem.use_gemdeps

version = ">= 0.a"

str = ARGV.first
if str
str = str.b[/\A_(.*)_\z/, 1]
if str and Gem::Version.correct?(str)
version = str
ARGV.shift
end
end

if Gem.respond_to?(:activate_bin_path)
load Gem.activate_bin_path('racc', 'racc', version)
else
gem "racc", version
load Gem.bin_path("racc", "racc", version)
end
29 changes: 29 additions & 0 deletions vendor/bundle/ruby/3.3.0/bin/rundoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env ruby
#
# This file was generated by RubyGems.
#
# The application 'rundoc' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'

Gem.use_gemdeps

version = ">= 0.a"

str = ARGV.first
if str
str = str.b[/\A_(.*)_\z/, 1]
if str and Gem::Version.correct?(str)
version = str
ARGV.shift
end
end

if Gem.respond_to?(:activate_bin_path)
load Gem.activate_bin_path('rundoc', 'rundoc', version)
else
gem "rundoc", version
load Gem.bin_path("rundoc", "rundoc", version)
end
29 changes: 29 additions & 0 deletions vendor/bundle/ruby/3.3.0/bin/thor
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env ruby
#
# This file was generated by RubyGems.
#
# The application 'thor' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'

Gem.use_gemdeps

version = ">= 0.a"

str = ARGV.first
if str
str = str.b[/\A_(.*)_\z/, 1]
if str and Gem::Version.correct?(str)
version = str
ARGV.shift
end
end

if Gem.respond_to?(:activate_bin_path)
load Gem.activate_bin_path('thor', 'thor', version)
else
gem "thor", version
load Gem.bin_path("thor", "thor", version)
end
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added vendor/bundle/ruby/3.3.0/cache/dotenv-3.1.6.gem
Binary file not shown.
Binary file not shown.
Binary file added vendor/bundle/ruby/3.3.0/cache/logger-1.6.3.gem
Binary file not shown.
Binary file added vendor/bundle/ruby/3.3.0/cache/matrix-0.4.2.gem
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added vendor/bundle/ruby/3.3.0/cache/rack-3.1.8.gem
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
current directory: /home/runner/work/buildpacks/buildpacks/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/ext/racc/cparse
/opt/hostedtoolcache/Ruby/3.3.6/x64/bin/ruby extconf.rb
creating Makefile

current directory: /home/runner/work/buildpacks/buildpacks/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/ext/racc/cparse
make DESTDIR\= sitearchdir\=./.gem.20241217-2671-3l0hum sitelibdir\=./.gem.20241217-2671-3l0hum clean

current directory: /home/runner/work/buildpacks/buildpacks/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/ext/racc/cparse
make DESTDIR\= sitearchdir\=./.gem.20241217-2671-3l0hum sitelibdir\=./.gem.20241217-2671-3l0hum
compiling cparse.c
linking shared-object racc/cparse.so

current directory: /home/runner/work/buildpacks/buildpacks/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/ext/racc/cparse
make DESTDIR\= sitearchdir\=./.gem.20241217-2671-3l0hum sitelibdir\=./.gem.20241217-2671-3l0hum install
/usr/bin/install -c -m 0755 cparse.so ./.gem.20241217-2671-3l0hum/racc

current directory: /home/runner/work/buildpacks/buildpacks/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/ext/racc/cparse
make DESTDIR\= sitearchdir\=./.gem.20241217-2671-3l0hum sitelibdir\=./.gem.20241217-2671-3l0hum clean
Binary file not shown.
Loading
Loading