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 #67

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
  •  
  •  
  •  
45 changes: 27 additions & 18 deletions docs/java_gradle/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/java_gradle/RUNDOC.md
Command: /home/runner/work/buildpacks/buildpacks/vendor/bundle/ruby/3.3.0/bin/rundoc docs/src/java_gradle/RUNDOC.md
STOP -->

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

```
$ ls
$ ls -A
.env
.git
.github
.gitignore
LICENSE
Procfile
README.md
Expand Down Expand Up @@ -146,7 +150,7 @@ Downloading https://services.gradle.org/distributions/gradle-7.6.1-bin.zip
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :heroku_buildpack_start_daemon UP-TO-DATE

BUILD SUCCESSFUL in 20s
BUILD SUCCESSFUL in 32s

[Running build task]
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Expand All @@ -159,7 +163,7 @@ Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
> Task :assemble
> Task :build

BUILD SUCCESSFUL in 3s
BUILD SUCCESSFUL in 6s
5 actionable tasks: 5 executed
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

Expand All @@ -179,7 +183,7 @@ Adding label 'io.buildpacks.build.metadata'
Adding label 'io.buildpacks.project.metadata'
Setting default process type 'web'
Saving my-image-name...
*** Images (b93f128d32ca):
*** Images (78cfd1767a26):
my-image-name
Adding cache layer 'heroku/jvm:openjdk'
Adding cache layer 'heroku/gradle:home'
Expand All @@ -194,7 +198,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
b93f128d32ca my-image-name latest
78cfd1767a26 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,16 +245,16 @@ Picked up JAVA_TOOL_OPTIONS: -XX:MaxRAMPercentage=80.0 -Dfile.encoding=UTF-8

:: Built with Spring Boot :: 3.3.5

2024-12-15T01:53:12.465Z INFO 1 --- [ main] c.heroku.java.GettingStartedApplication : Starting GettingStartedApplication v1.0.0-SNAPSHOT using Java 17.0.13 with PID 1 (/workspace/build/libs/java-getting-started-gradle-1.0.0-SNAPSHOT.jar started by heroku in /workspace)
2024-12-15T01:53:12.466Z INFO 1 --- [ main] c.heroku.java.GettingStartedApplication : No active profile set, falling back to 1 default profile: "default"
2024-12-15T01:53:12.935Z INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 5006 (http)
2024-12-15T01:53:12.943Z INFO 1 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2024-12-15T01:53:12.943Z INFO 1 --- [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.31]
2024-12-15T01:53:12.959Z INFO 1 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2024-12-15T01:53:12.959Z INFO 1 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 470 ms
2024-12-15T01:53:13.019Z INFO 1 --- [ main] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page template: index
2024-12-15T01:53:13.163Z INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 5006 (http) with context path '/'
2024-12-15T01:53:13.171Z INFO 1 --- [ main] c.heroku.java.GettingStartedApplication : Started GettingStartedApplication in 0.873 seconds (process running for 1.079)
2024-12-17T21:00:05.502Z INFO 1 --- [ main] c.heroku.java.GettingStartedApplication : Starting GettingStartedApplication v1.0.0-SNAPSHOT using Java 17.0.13 with PID 1 (/workspace/build/libs/java-getting-started-gradle-1.0.0-SNAPSHOT.jar started by heroku in /workspace)
2024-12-17T21:00:05.507Z INFO 1 --- [ main] c.heroku.java.GettingStartedApplication : No active profile set, falling back to 1 default profile: "default"
2024-12-17T21:00:06.545Z INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 5006 (http)
2024-12-17T21:00:06.556Z INFO 1 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2024-12-17T21:00:06.556Z INFO 1 --- [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.31]
2024-12-17T21:00:06.587Z INFO 1 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2024-12-17T21:00:06.589Z INFO 1 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1020 ms
2024-12-17T21:00:06.700Z INFO 1 --- [ main] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page template: index
2024-12-17T21:00:06.977Z INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 5006 (http) with context path '/'
2024-12-17T21:00:06.991Z INFO 1 --- [ main] c.heroku.java.GettingStartedApplication : Started GettingStartedApplication in 1.889 seconds (process running for 2.357)
```
<!-- STOP. This document is autogenerated. Do not manually modify. See the top of the doc for more details. -->

Expand Down Expand Up @@ -282,7 +286,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
.github
.gitignore
.gradle
LICENSE
Procfile
README.md
Expand Down Expand Up @@ -364,7 +373,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: java -jar build/libs/java-getting-started-gradle-1.0.0-SNAPSHOT.jar
Expand Down
Binary file modified docs/java_gradle/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