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

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

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

```
$ ls
$ ls -A
.env
.g8
.git
.github
.gitignore
LICENSE
Procfile
Procfile.windows
Expand Down Expand Up @@ -154,7 +159,7 @@ Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
[info] loading global plugins from /layers/heroku_sbt/sbt-global/plugins
[info] compiling 1 Scala source to /layers/heroku_sbt/sbt-global/plugins/target/scala-2.12/sbt-1.0/classes ...
[info] Non-compiled module 'compiler-bridge_2.12' for Scala 2.12.16. Compiling...
[info] Compilation completed in 4.235s.
[info] Compilation completed in 8.717s.
[info] done compiling
[info] loading settings for project workspace-build from plugins.sbt ...
[info] loading project definition from /workspace/project
Expand All @@ -176,11 +181,11 @@ Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
[info]
[info] compiling 8 Scala sources and 1 Java source to /workspace/target/scala-2.13/classes ...
[info] Non-compiled module 'compiler-bridge_2.13' for Scala 2.13.10. Compiling...
[info] Compilation completed in 3.975s.
[info] Compilation completed in 7.891s.
[info] done compiling
[success] Total time: 12 s, completed Dec 15, 2024, 2:16:02 AM
[success] Total time: 13 s, completed Dec 17, 2024, 9:00:48 PM
[info] Wrote /workspace/target/scala-2.13/scala-getting-started_2.13-1.0-SNAPSHOT.pom
[success] Total time: 0 s, completed Dec 15, 2024, 2:16:02 AM
[success] Total time: 1 s, completed Dec 17, 2024, 9:00:49 PM

[Discovering process types]
Procfile declares types -> web
Expand All @@ -197,7 +202,7 @@ Adding label 'io.buildpacks.build.metadata'
Adding label 'io.buildpacks.project.metadata'
Setting default process type 'web'
Saving my-image-name...
*** Images (7d6f9964107f):
*** Images (d52aabb58219):
my-image-name
Adding cache layer 'heroku/jvm:openjdk'
Adding cache layer 'heroku/sbt:coursier-home'
Expand All @@ -215,7 +220,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
7d6f9964107f my-image-name latest
d52aabb58219 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 @@ -253,10 +258,10 @@ By default, images will be booted into a web server configuration. You can launc
```
$ docker run -it --rm --env PORT=5006 -p 5006:5006 my-image-name
Picked up JAVA_TOOL_OPTIONS: -XX:MaxRAMPercentage=80.0 -Dfile.encoding=UTF-8
2024-12-15 02:16:09 INFO  play.api.db.DefaultDBApi  Database [default] initialized
2024-12-15 02:16:09 INFO  play.api.db.HikariCPConnectionPool  Creating Pool for datasource 'default'
2024-12-15 02:16:09 INFO  play.api.Play  Application started (Prod) (no global state)
2024-12-15 02:16:10 INFO  play.core.server.AkkaHttpServer  Listening for HTTP on /[0:0:0:0:0:0:0:0]:5006
2024-12-17 21:01:00 INFO  play.api.db.DefaultDBApi  Database [default] initialized
2024-12-17 21:01:00 INFO  play.api.db.HikariCPConnectionPool  Creating Pool for datasource 'default'
2024-12-17 21:01:01 INFO  play.api.Play  Application started (Prod) (no global state)
2024-12-17 21:01:01 INFO  play.core.server.AkkaHttpServer  Listening for HTTP on /[0:0:0:0:0:0:0:0]:5006
```
<!-- STOP. This document is autogenerated. Do not manually modify. See the top of the doc for more details. -->

Expand Down Expand Up @@ -288,7 +293,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
.g8
.git
.github
.gitignore
LICENSE
Procfile
Procfile.windows
Expand Down Expand Up @@ -370,7 +380,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: target/universal/stage/bin/scala-getting-started -Dhttp.port=${PORT}
Expand Down
Binary file modified docs/scala/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