Skip to content

Instantly share code, notes, and snippets.

@cezarsa
Created June 3, 2014 17:35
Show Gist options
  • Save cezarsa/5db1e1124ef13812b92c to your computer and use it in GitHub Desktop.
Save cezarsa/5db1e1124ef13812b92c to your computer and use it in GitHub Desktop.
Tsuru Buildpack
$ t app-create sample buildpack
App "sample" is being created!
Use app-info to check the status of the app and its units.
Your repository for "sample" project is "git@192.168.50.4:sample.git"
(sample)[14:00] cezar.sa@dagobah [/.../code/tsuru/sample_app] (master)
$ git push tsuru master
Counting objects: 63, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (47/47), done.
Writing objects: 100% (63/63), 6.51 KiB | 0 bytes/s, done.
Total 63 (delta 10), reused 0 (delta 0)
remote: Cloning into '/home/application/current'...
remote: /
remote: requirements.apt not found.
remote: Skipping...
remote: BUILDPACK:
remote: Scala app detected
remote: -----> Installing OpenJDK 1.6...done
remote: -----> Downloading SBT...done
remote: -----> Running: sbt compile stage
remote: Getting org.scala-sbt sbt 0.12.0 ...
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/sbt/0.12.0/jars/sbt.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#sbt;0.12.0!sbt.jar (1650ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/main/0.12.0/jars/main.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#main;0.12.0!main.jar (4056ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/compiler-interface/0.12.0/jars/compiler-interface-src.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#compiler-interface;0.12.0!compiler-interface-src.jar (1150ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/compiler-interface/0.12.0/jars/compiler-interface-bin.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#compiler-interface;0.12.0!compiler-interface-bin.jar (1579ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/precompiled-2_8_2/0.12.0/jars/compiler-interface-bin.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#precompiled-2_8_2;0.12.0!compiler-interface-bin.jar (1904ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/precompiled-2_10_0-m4/0.12.0/jars/compiler-interface-bin.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#precompiled-2_10_0-m4;0.12.0!compiler-interface-bin.jar (1779ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/actions/0.12.0/jars/actions.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#actions;0.12.0!actions.jar (2321ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/interface/0.12.0/jars/interface.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#interface;0.12.0!interface.jar (6579ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/io/0.12.0/jars/io.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#io;0.12.0!io.jar (2323ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/ivy/0.12.0/jars/ivy.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#ivy;0.12.0!ivy.jar (2406ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/launcher-interface/0.12.0/jars/launcher-interface.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#launcher-interface;0.12.0!launcher-interface.jar (1019ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/logging/0.12.0/jars/logging.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#logging;0.12.0!logging.jar (1121ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/process/0.12.0/jars/process.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#process;0.12.0!process.jar (1389ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/run/0.12.0/jars/run.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#run;0.12.0!run.jar (2371ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/command/0.12.0/jars/command.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#command;0.12.0!command.jar (7550ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/classpath/0.12.0/jars/classpath.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#classpath;0.12.0!classpath.jar (1533ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/completion/0.12.0/jars/completion.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#completion;0.12.0!completion.jar (1824ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/api/0.12.0/jars/api.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#api;0.12.0!api.jar (2328ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/compiler-integration/0.12.0/jars/compiler-integration.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#compiler-integration;0.12.0!compiler-integration.jar (1784ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/compiler-ivy-integration/0.12.0/jars/compiler-ivy-integration.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#compiler-ivy-integration;0.12.0!compiler-ivy-integration.jar (1047ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/task-system/0.12.0/jars/task-system.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#task-system;0.12.0!task-system.jar (3828ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/tasks/0.12.0/jars/tasks.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#tasks;0.12.0!tasks.jar (1691ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/tracking/0.12.0/jars/tracking.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#tracking;0.12.0!tracking.jar (1134ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/testing/0.12.0/jars/testing.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#testing;0.12.0!testing.jar (1238ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/control/0.12.0/jars/control.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#control;0.12.0!control.jar (1019ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/collections/0.12.0/jars/collections.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#collections;0.12.0!collections.jar (2313ms)
remote: downloading http://s3pository.heroku.com/maven-central/jline/jline/1.0/jline-1.0.jar ...
remote: [SUCCESSFUL ] jline#jline;1.0!jline.jar (1006ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/incremental-compiler/0.12.0/jars/incremental-compiler.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#incremental-compiler;0.12.0!incremental-compiler.jar (2033ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/compile/0.12.0/jars/compile.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#compile;0.12.0!compile.jar (1796ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/persist/0.12.0/jars/persist.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#persist;0.12.0!persist.jar (1457ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/classfile/0.12.0/jars/classfile.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#classfile;0.12.0!classfile.jar (1286ms)
remote: downloading http://s3pository.heroku.com/maven-central/org/scala-tools/sbinary/sbinary_2.9.0/0.4.0/sbinary_2.9.0-0.4.0.jar ...
remote: [SUCCESSFUL ] org.scala-tools.sbinary#sbinary_2.9.0;0.4.0!sbinary_2.9.0.jar (1214ms)
remote: downloading http://s3pository.heroku.com/maven-central/org/apache/ivy/ivy/2.3.0-rc1/ivy-2.3.0-rc1.jar ...
remote: [SUCCESSFUL ] org.apache.ivy#ivy;2.3.0-rc1!ivy.jar (7291ms)
remote: downloading http://s3pository.heroku.com/maven-central/com/jcraft/jsch/0.1.46/jsch-0.1.46.jar ...
remote: [SUCCESSFUL ] com.jcraft#jsch;0.1.46!jsch.jar (1421ms)
remote: downloading http://s3pository.heroku.com/maven-central/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar ...
remote: [SUCCESSFUL ] commons-httpclient#commons-httpclient;3.1!commons-httpclient.jar (1476ms)
remote: downloading http://s3pository.heroku.com/maven-central/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar ...
remote: [SUCCESSFUL ] commons-logging#commons-logging;1.0.4!commons-logging.jar (1136ms)
remote: downloading http://s3pository.heroku.com/maven-central/commons-codec/commons-codec/1.2/commons-codec-1.2.jar ...
remote: [SUCCESSFUL ] commons-codec#commons-codec;1.2!commons-codec.jar (878ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/cache/0.12.0/jars/cache.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#cache;0.12.0!cache.jar (1397ms)
remote: downloading http://s3pository.heroku.com/ivy-typesafe-releases/org.scala-sbt/test-agent/0.12.0/jars/test-agent.jar ...
remote: [SUCCESSFUL ] org.scala-sbt#test-agent;0.12.0!test-agent.jar (994ms)
remote: downloading http://s3pository.heroku.com/maven-central/org/scala-tools/testing/test-interface/0.5/test-interface-0.5.jar ...
remote: [SUCCESSFUL ] org.scala-tools.testing#test-interface;0.5!test-interface.jar (5948ms)
remote: :: retrieving :: org.scala-sbt#boot-app
remote: confs: [default]
remote: 40 artifacts copied, 0 already retrieved (8158kB/196ms)
remote: Getting Scala 2.9.2 (for sbt)...
remote: downloading http://s3pository.heroku.com/maven-central/org/scala-lang/scala-compiler/2.9.2/scala-compiler-2.9.2.jar ...
remote: [SUCCESSFUL ] org.scala-lang#scala-compiler;2.9.2!scala-compiler.jar (12203ms)
remote: downloading http://s3pository.heroku.com/maven-central/org/scala-lang/scala-library/2.9.2/scala-library-2.9.2.jar ...
remote: [SUCCESSFUL ] org.scala-lang#scala-library;2.9.2!scala-library.jar (12312ms)
remote: downloading http://s3pository.heroku.com/maven-central/org/scala-lang/jline/2.9.2/jline-2.9.2.jar ...
remote: [SUCCESSFUL ] org.scala-lang#jline;2.9.2!jline.jar (1665ms)
remote: downloading http://s3pository.heroku.com/maven-central/org/fusesource/jansi/jansi/1.4/jansi-1.4.jar ...
remote: [SUCCESSFUL ] org.fusesource.jansi#jansi;1.4!jansi.jar (1100ms)
remote: :: retrieving :: org.scala-sbt#boot-scala
remote: confs: [default]
remote: 4 artifacts copied, 0 already retrieved (20090kB/144ms)
remote: [info] Loading project definition from /tmp/scala_buildpack_build_dir/project
remote: [info] Updating {file:/tmp/scala_buildpack_build_dir/project/}default-00277f...
remote: [info] Resolving com.typesafe.startscript#xsbt-start-script-plugin;0.5.3 ...
remote: [info] Resolving org.scala-sbt#sbt;0.12.0 ...
remote: [info] Resolving org.scala-sbt#main;0.12.0 ...
remote: [info] Resolving org.scala-sbt#actions;0.12.0 ...
remote: [info] Resolving org.scala-sbt#classpath;0.12.0 ...
remote: [info] Resolving org.scala-sbt#launcher-interface;0.12.0 ...
remote: [info] Resolving org.scala-lang#scala-library;2.9.2 ...
remote: [info] Resolving org.scala-sbt#interface;0.12.0 ...
remote: [info] Resolving org.scala-sbt#io;0.12.0 ...
remote: [info] Resolving org.scala-sbt#control;0.12.0 ...
remote: [info] Resolving org.scala-lang#scala-compiler;2.9.2 ...
remote: [info] Resolving org.scala-sbt#completion;0.12.0 ...
remote: [info] Resolving org.scala-sbt#collections;0.12.0 ...
remote: [info] Resolving jline#jline;1.0 ...
remote: [info] Resolving org.scala-sbt#api;0.12.0 ...
remote: [info] Resolving org.scala-sbt#compiler-integration;0.12.0 ...
remote: [info] Resolving org.scala-sbt#incremental-compiler;0.12.0 ...
remote: [info] Resolving org.scala-sbt#logging;0.12.0 ...
remote: [info] Resolving org.scala-sbt#process;0.12.0 ...
remote: [info] Resolving org.scala-sbt#compile;0.12.0 ...
remote: [info] Resolving org.scala-sbt#persist;0.12.0 ...
remote: [info] Resolving org.scala-tools.sbinary#sbinary_2.9.0;0.4.0 ...
remote: [info] Resolving org.scala-sbt#classfile;0.12.0 ...
remote: [info] Resolving org.scala-sbt#compiler-ivy-integration;0.12.0 ...
remote: [info] Resolving org.scala-sbt#ivy;0.12.0 ...
remote: [info] Resolving org.apache.ivy#ivy;2.3.0-rc1 ...
remote: [info] Resolving com.jcraft#jsch;0.1.46 ...
remote: [info] Resolving commons-httpclient#commons-httpclient;3.1 ...
remote: [info] Resolving commons-logging#commons-logging;1.0.4 ...
remote: [info] Resolving commons-codec#commons-codec;1.2 ...
remote: [info] Resolving org.scala-sbt#run;0.12.0 ...
remote: [info] Resolving org.scala-sbt#task-system;0.12.0 ...
remote: [info] Resolving org.scala-sbt#tasks;0.12.0 ...
remote: [info] Resolving org.scala-sbt#tracking;0.12.0 ...
remote: [info] Resolving org.scala-sbt#cache;0.12.0 ...
remote: [info] Resolving org.scala-sbt#testing;0.12.0 ...
remote: [info] Resolving org.scala-sbt#test-agent;0.12.0 ...
remote: [info] Resolving org.scala-tools.testing#test-interface;0.5 ...
remote: [info] Resolving org.scala-sbt#command;0.12.0 ...
remote: [info] Resolving org.scala-sbt#compiler-interface;0.12.0 ...
remote: [info] Resolving org.scala-sbt#precompiled-2_8_2;0.12.0 ...
remote: [info] Resolving org.scala-sbt#precompiled-2_10_0-m4;0.12.0 ...
remote: [info] downloading http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.startscript/xsbt-start-script-plugin/scala_2.9.2/sbt_0.12/0.5.3/jars/xsbt-start-script-plugin.jar ...
remote: [info] [SUCCESSFUL ] com.typesafe.startscript#xsbt-start-script-plugin;0.5.3!xsbt-start-script-plugin.jar (1568ms)
remote: [info] Done updating.
remote: [info] Set current project to hello (in build file:/tmp/scala_buildpack_build_dir/)
remote: [info] Updating {file:/tmp/scala_buildpack_build_dir/}default-a9b7bc...
remote: [info] Resolving org.scala-lang#scala-library;2.9.2 ...
remote: [info] Resolving com.twitter#finagle-core;1.9.0 ...
remote: [info] Resolving com.twitter#util-hashing;1.11.4 ...
remote: [info] Resolving com.twitter#util-core;1.11.4 ...
remote: [info] Resolving com.twitter#util-collection;1.11.4 ...
remote: [info] Resolving com.google.guava#guava;r09 ...
remote: [info] Resolving com.google#google;5 ...
remote: [info] Resolving commons-collections#commons-collections;3.2.1 ...
remote: [info] Resolving org.apache.commons#commons-parent;9 ...
remote: [info] Resolving org.apache#apache;4 ...
remote: [info] Resolving org.jboss.netty#netty;3.2.5.Final ...
remote: [info] Resolving org.jboss#jboss-parent;5 ...
remote: [info] Resolving com.twitter#finagle-http;1.9.0 ...
remote: [info] Resolving com.twitter#util-logging;1.11.4 ...
remote: [info] Resolving commons-lang#commons-lang;2.6 ...
remote: [info] Resolving org.apache.commons#commons-parent;17 ...
remote: [info] Resolving org.apache#apache;7 ...
remote: [info] downloading http://maven.twttr.com/com/twitter/finagle-core/1.9.0/finagle-core-1.9.0.jar ...
remote: [info] [SUCCESSFUL ] com.twitter#finagle-core;1.9.0!finagle-core.jar (3819ms)
remote: [info] downloading http://maven.twttr.com/com/twitter/finagle-http/1.9.0/finagle-http-1.9.0.jar ...
remote: [info] [SUCCESSFUL ] com.twitter#finagle-http;1.9.0!finagle-http.jar (2609ms)
remote: [info] downloading http://maven.twttr.com/com/twitter/util-hashing/1.11.4/util-hashing-1.11.4.jar ...
remote: [info] [SUCCESSFUL ] com.twitter#util-hashing;1.11.4!util-hashing.jar (1473ms)
remote: [info] downloading http://maven.twttr.com/com/twitter/util-collection/1.11.4/util-collection-1.11.4.jar ...
remote: [info] [SUCCESSFUL ] com.twitter#util-collection;1.11.4!util-collection.jar (1460ms)
remote: [info] downloading http://maven.twttr.com/com/twitter/util-core/1.11.4/util-core-1.11.4.jar ...
remote: [info] [SUCCESSFUL ] com.twitter#util-core;1.11.4!util-core.jar (3167ms)
remote: [info] downloading http://repo1.maven.org/maven2/org/jboss/netty/netty/3.2.5.Final/netty-3.2.5.Final.jar ...
remote: [info] [SUCCESSFUL ] org.jboss.netty#netty;3.2.5.Final!netty.jar(bundle) (2908ms)
remote: [info] downloading http://repo1.maven.org/maven2/com/google/guava/guava/r09/guava-r09.jar ...
remote: [info] [SUCCESSFUL ] com.google.guava#guava;r09!guava.jar (2525ms)
remote: [info] downloading http://repo1.maven.org/maven2/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar ...
remote: [info] [SUCCESSFUL ] commons-collections#commons-collections;3.2.1!commons-collections.jar (1381ms)
remote: [info] downloading http://maven.twttr.com/com/twitter/util-logging/1.11.4/util-logging-1.11.4.jar ...
remote: [info] [SUCCESSFUL ] com.twitter#util-logging;1.11.4!util-logging.jar (2335ms)
remote: [info] downloading http://repo1.maven.org/maven2/commons-lang/commons-lang/2.6/commons-lang-2.6.jar ...
remote: [info] [SUCCESSFUL ] commons-lang#commons-lang;2.6!commons-lang.jar (986ms)
remote: [info] Done updating.
remote: [info] Compiling 1 Scala source to /tmp/scala_buildpack_build_dir/target/scala-2.9.2/classes...
remote: [success] Total time: 70 s, completed Jun 3, 2014 5:07:53 PM
remote: [info] Wrote start script for mainClass := Some(Web) to /tmp/scala_buildpack_build_dir/target/start
remote: [success] Total time: 1 s, completed Jun 3, 2014 5:07:54 PM
remote: -----> Discovering process types
remote: Procfile declares types -> web
remote: export PORT=8888
remote: web: /start web
remote:
remote: ---> App will be restarted, please check its logs for more details...
remote:
To git@192.168.50.4:sample.git
* [new branch] master -> master
(sample)[14:08] cezar.sa@dagobah [/.../code/tsuru/sample_app] (master)
$ t app-list
+-------------+-------------------------+-------------------------+--------+
| Application | Units State Summary | Address | Ready? |
+-------------+-------------------------+-------------------------+--------+
| sample | 1 of 1 units in-service | sample.tsuru-sample.com | Yes |
+-------------+-------------------------+-------------------------+--------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment