Google Cloud (Ruby)

Welcome to Cloud Shell! For help, visit https://cloud.google.com/cloud-shell/help. arnon@daydash-1346:~$ gcloud config set project daydash-1346 \ > && gcloud source repos clone default \ > ~/src/daydash-1346/ruby_mvms_quickstart \ > && cd ~/src/daydash-1346/ruby_mvms_quickstart/1-hello-world \ > && git checkout master Cloning into '/home/arnon/src/daydash-1346/ruby_mvms_quickstart'... Receiving objects: 100% (1462/1462), 341.99 KiB | 87.00 KiB/s, done. Resolving deltas: 100% (684/684), done. Checking connectivity... done. Project [daydash-1346] repository [default] was cloned to [/home/arnon/src/daydash-1346/ruby_mvms_quickstart]. Already on 'master' Your branch is up-to-date with 'origin/master'. arnon@daydash-1346:~/src/daydash-1346/ruby_mvms_quickstart/1-hello-world$ bundle install Fetching gem metadata from https://rubygems.org/ Fetching version metadata from https://rubygems.org/ Fetching dependency metadata from https://rubygems.org/ Installing rake 11.1.2 Using i18n 0.7.0 Using json 1.8.3 Installing minitest 5.8.4 Using thread_safe 0.3.5 Using builder 3.2.2 Using erubis 2.7.0 Installing mini_portile2 2.0.0 Using rack 1.6.4 Installing mime-types-data 3.2016.0221 Using arel 6.0.3 Installing addressable 2.4.0 Installing cliver 0.3.2 Using concurrent-ruby 1.0.2 Installing diff-lcs 1.2.5 Installing multi_json 1.12.0 Installing websocket-extensions 0.1.2 Using bundler 1.12.5 Using thor 0.19.1 Installing rspec-support 3.4.1 Using tzinfo 1.2.2 Installing nokogiri 1.6.7.2 with native extensions Using rack-test 0.6.3 Installing mime-types 3.0 Using sprockets 3.6.0 Installing websocket-driver 0.6.3 with native extensions Installing rspec-core 3.4.4 Installing rspec-expectations 3.4.0 Installing rspec-mocks 3.4.1 Using activesupport 4.2.6 Installing tzinfo-data 1.2016.4 Using loofah 2.0.3 Installing xpath 2.0.0 Using mail 2.6.4 Using rails-deprecated_sanitizer 1.0.3 Using globalid 0.3.6 Using activemodel 4.2.6 Using rails-html-sanitizer 1.0.3 Installing capybara 2.7.1 Using rails-dom-testing 1.0.7 Using activejob 4.2.6 Using activerecord 4.2.6 Installing poltergeist 1.9.0 Using actionview 4.2.6 Using actionpack 4.2.6 Using actionmailer 4.2.6 Using railties 4.2.6 Using sprockets-rails 3.0.4 Installing rspec-rails 3.4.2 Using rails 4.2.6 Bundle complete! 6 Gemfile dependencies, 50 gems now installed. Use `bundle show [gemname]` to see where a bundled gem is installed. arnon@daydash-1346:~/src/daydash-1346/ruby_mvms_quickstart/1-hello-world$ bundle exec rails server --port=8080 => Booting WEBrick => Rails 4.2.6 application starting in development on http://localhost:8080 => Run `rails server -h` for more startup options => Ctrl-C to shutdown server [2016-06-18 12:30:13] INFO WEBrick 1.3.1 [2016-06-18 12:30:13] INFO ruby 2.3.1 (2016-04-26) [x86_64-linux] [2016-06-18 12:30:13] INFO WEBrick::HTTPServer#start: pid=19357 port=8080 Started GET "/?authuser=0" for 169.254.160.2 at 2016-06-18 12:30:41 +0700 Processing by HelloWorldController#index as HTML Parameters: {"authuser"=>"0"} Rendered text template (0.0ms) Completed 200 OK in 10ms (Views: 10.1ms) ^C[2016-06-18 12:30:54] INFO going to shutdown ... [2016-06-18 12:30:54] INFO WEBrick::HTTPServer#start done. Exiting arnon@daydash-1346:~/src/daydash-1346/ruby_mvms_quickstart/1-hello-world$ gcloud preview app deploy You are about to deploy the following services: - daydash-1346/default/20160618t123111 (from [/home/arnon/src/daydash-1346/ruby_mvms_quickstart/1-hello-world/app.yaml]) Deployed URL: [https://daydash-1346.appspot.com] Do you want to continue (Y/n)? y Beginning deployment... If this is your first deployment, this may take a while...done. Verifying that Managed VMs are enabled and ready. Building and pushing image for service [default] Started cloud build [9b7d69e4-3707-4abe-b103-1615f85ced5b]. To see logs in the Cloud Console: https://console.developers.google.com/logs?project=daydash-1346&service=cloudbuild.googleapis.com&key1=9b7d69e4-3707-4abe-b103-1615f85ced5b&logName=projects/daydash-1346/logs/cloudbuild ---------------------------------------------------------------------- REMOTE BUILD OUTPUT ----------------------------------------------------------------------- starting build "9b7d69e4-3707-4abe-b103-1615f85ced5b" FETCHSOURCE Fetching storage object: gs://staging.daydash-1346.appspot.com/us.gcr.io/daydash-1346/appengine/default.20160618t123111:latest#1466227943801000 Copying gs://staging.daydash-1346.appspot.com/us.gcr.io/daydash-1346/appengine/default.20160618t123111:latest#1466227943801000... Downloading file:///tmp/source-archive.tgz: 13.35 KiB/13.35 KiB FETCHBUILDER BUILD + docker version Client: Version: 1.9.1 API version: 1.21 Go version: go1.4.3 Git commit: a34a1d5 Built: Fri Nov 20 17:56:04 UTC 2015 OS/Arch: linux/amd64 Server: Version: 1.9.1 API version: 1.21 Go version: go1.4.2 Git commit: a34a1d5 Built: Fri Nov 20 13:12:04 UTC 2015 OS/Arch: linux/amd64 + cat Dockerfile # This Dockerfile for a Ruby application was generated by gcloud. # The base Dockerfile installs: # * A number of packages needed by the Ruby runtime and by gems # commonly used in Ruby web apps (such as libsqlite3) # * A recent version of NodeJS # * A recent version of the standard Ruby runtime to use by default # * The bundler gem FROM gcr.io/google_appengine/ruby # Install 2.2.3 if not already preinstalled by the base image RUN cd /rbenv/plugins/ruby-build && \ git pull && \ rbenv install -s 2.2.3 && \ rbenv global 2.2.3 && \ gem install -q --no-rdoc --no-ri bundler --version 1.11.2 ENV RBENV_VERSION 2.2.3 # Copy the application files. COPY . /app/ # Install required gems if Gemfile.lock is present. RUN if test -f Gemfile.lock; then \ bundle install --deployment && rbenv rehash; \ fi # Temporary. Will be moved to base image later. ENV RACK_ENV=production \ RAILS_ENV=production \ RAILS_SERVE_STATIC_FILES=true # Run asset pipeline if we're in a Rails app. RUN if test -d app/assets -a -f config/application.rb; then \ bundle exec rake assets:precompile; \ fi # BUG: Reset entrypoint to override base image. ENTRYPOINT [] # Start application on port $PORT. CMD bundle exec rackup -p 8080 -E production config.ru + docker build --tag us.gcr.io/daydash-1346/appengine/default.20160618t123111:latest -f Dockerfile /workspace Sending build context to Docker daemon 91.65 kB Step 1 : FROM gcr.io/google_appengine/ruby ---> 42ae72765422 Step 2 : RUN cd /rbenv/plugins/ruby-build && git pull && rbenv install -s 2.2.3 && rbenv global 2.2.3 && gem install -q --no-rdoc --no-ri bundler --version 1.11.2 ---> Running in f3dde9cb467a From https://github.com/sstephenson/ruby-build a73c427..3f6d068 master -> origin/master Updating a73c427..3f6d068 Fast-forward share/ruby-build/rbx-3.37 | 3 +++ share/ruby-build/rbx-3.38 | 3 +++ share/ruby-build/rbx-3.39 | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 share/ruby-build/rbx-3.37 create mode 100644 share/ruby-build/rbx-3.38 create mode 100644 share/ruby-build/rbx-3.39 Downloading ruby-2.2.3.tar.bz2... -> https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.3.tar.bz2 Installing ruby-2.2.3... Installed ruby-2.2.3 to /rbenv/versions/2.2.3 Successfully installed bundler-1.11.2 1 gem installed ---> 7b2df83a708e Removing intermediate container f3dde9cb467a Step 3 : ENV RBENV_VERSION 2.2.3 ---> Running in 919b96e2adb0 ---> 0b88f034eb68 Removing intermediate container 919b96e2adb0 Step 4 : COPY . /app/ ---> 6f5d9ca420b4 Removing intermediate container a6f334fb9962 Step 5 : RUN if test -f Gemfile.lock; then bundle install --deployment && rbenv rehash; fi ---> Running in 72ea3ed33c62 Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. Fetching gem metadata from https://rubygems.org/........... Fetching version metadata from https://rubygems.org/... Fetching dependency metadata from https://rubygems.org/.. Installing rake 11.1.2 Installing i18n 0.7.0 Installing json 1.8.3 with native extensions Installing minitest 5.8.4 Installing thread_safe 0.3.5 Installing builder 3.2.2 Installing erubis 2.7.0 Installing mini_portile2 2.0.0 Installing rack 1.6.4 Installing mime-types-data 3.2016.0221 Installing arel 6.0.3 Installing addressable 2.4.0 Installing cliver 0.3.2 Installing concurrent-ruby 1.0.2 Installing diff-lcs 1.2.5 Installing multi_json 1.12.0 Installing websocket-extensions 0.1.2 Using bundler 1.11.2 Installing thor 0.19.1 Installing rspec-support 3.4.1 Installing tzinfo 1.2.2 Installing nokogiri 1.6.7.2 with native extensions Installing rack-test 0.6.3 Installing mime-types 3.0 Installing sprockets 3.6.0 Installing websocket-driver 0.6.3 with native extensions Installing rspec-core 3.4.4 Installing rspec-expectations 3.4.0 Installing rspec-mocks 3.4.1 Installing activesupport 4.2.6 Installing tzinfo-data 1.2016.4 Installing loofah 2.0.3 Installing xpath 2.0.0 Installing mail 2.6.4 Installing rails-deprecated_sanitizer 1.0.3 Installing globalid 0.3.6 Installing activemodel 4.2.6 Installing rails-html-sanitizer 1.0.3 Installing capybara 2.7.1 Installing rails-dom-testing 1.0.7 Installing activejob 4.2.6 Installing activerecord 4.2.6 Installing poltergeist 1.9.0 Installing actionview 4.2.6 Installing actionpack 4.2.6 Installing actionmailer 4.2.6 Installing railties 4.2.6 Installing sprockets-rails 3.0.4 Installing rspec-rails 3.4.2 Installing rails 4.2.6 Bundle complete! 6 Gemfile dependencies, 50 gems now installed. Bundled gems are installed into ./vendor/bundle. ---> 5ddd3f726e46 Removing intermediate container 72ea3ed33c62 Step 6 : ENV RACK_ENV production RAILS_ENV production RAILS_SERVE_STATIC_FILES true ---> Running in 85217d62a7e0 ---> 0a8112f1340b Removing intermediate container 85217d62a7e0 Step 7 : RUN if test -d app/assets -a -f config/application.rb; then bundle exec rake assets:precompile; fi ---> Running in a5c7063af96b ---> 2f0ad2145441 Removing intermediate container a5c7063af96b Step 8 : ENTRYPOINT ---> Running in 1c61c78ddf38 ---> 1187ea9fc0f2 Removing intermediate container 1c61c78ddf38 Step 9 : CMD bundle exec rackup -p 8080 -E production config.ru ---> Running in 0e807bb6d0e7 ---> c25d1e4c63d3 Removing intermediate container 0e807bb6d0e7 Successfully built c25d1e4c63d3 PUSH The push refers to a repository [us.gcr.io/daydash-1346/appengine/default.20160618t123111] (len: 1) c25d1e4c63d3: Preparing c25d1e4c63d3: Pushing c25d1e4c63d3: Pushed 1187ea9fc0f2: Preparing 1187ea9fc0f2: Pushing 1187ea9fc0f2: Pushed 2f0ad2145441: Preparing 2f0ad2145441: Pushing 2f0ad2145441: Pushed 0a8112f1340b: Preparing 0a8112f1340b: Pushing 0a8112f1340b: Pushed 5ddd3f726e46: Preparing 5ddd3f726e46: Pushing 5ddd3f726e46: Pushed 6f5d9ca420b4: Preparing 6f5d9ca420b4: Pushing 6f5d9ca420b4: Pushed 0b88f034eb68: Preparing 0b88f034eb68: Pushing 0b88f034eb68: Pushed 7b2df83a708e: Preparing 7b2df83a708e: Pushing 7b2df83a708e: Pushed 7492e132c101: Image already exists 7c2baa6f69bb: Image already exists 485d77a71650: Image already exists 0b708cf26535: Image already exists aa8c1f7b57d9: Image already exists c2182141bf9f: Image already exists 526b63ce42d4: Image already exists 754f738ad6e6: Image already exists 399c5f97463b: Image already exists 096d9403d234: Image already exists latest: digest: sha256:e5598e79c5d9699deee88b7bfa6cd9438e0713fc1451f424454d083b96701db0 size: 75384 DONE ------------------------------------------------------------------------------------------------------------------------------------------------------------------ Updating module [default]...done. Deployed module [default] to [https://daydash-1346.appspot.com] arnon@daydash-1346:~/src/daydash-1346/ruby_mvms_quickstart/1-hello-world$

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.