Skip to content

Instantly share code, notes, and snippets.

@nota-ja
nota-ja / gistdeck-sample.md
Last active August 29, 2015 14:20
gistdeck sample

class: center

TITLE SLIDE

AUTHOR

ORGANIZATION


1st slide

@nota-ja
nota-ja / major-updates-in-cloud-foundry-v182-v195.md
Last active August 29, 2015 14:20
Major Updates of Cloud Foundry in the Last (approx.) One Year (2/3)

ここ1年ほどの Cloud Foundry の更新 中編

【この記事は, Cloud Foundry 情報発信強化週間 の記事の一つです】

 この記事は, https://github.com/cloudfoundry-community/cf-docs-contrib/wiki/All-CF-Releases (※0) に基づいて,ここ1年くらいに Cloud Foundry (以下"CF") のソースコードに入った更新を簡単にまとめるものです。

 この中編では,2014年9月2日の v182 から,2014年12月29日の v195 までについて記します。

◆ v182 (2014/09/02)

@nota-ja
nota-ja / major-updates-in-cloud-foundry-v164-v181.md
Last active August 29, 2015 14:20
Major Updates of Cloud Foundry in the Last (approx.) One Year (1/3)

ここ1年ほどの Cloud Foundry の更新 前編

【この記事は, Cloud Foundry 情報発信強化週間 の記事の一つです】

 この記事では, https://github.com/cloudfoundry-community/cf-docs-contrib/wiki/All-CF-Releases (※0) に基づいて,ここ1年くらい (※1) に Cloud Foundry (以下"CF") のソースコードに入った更新を簡単に (※2) まとめます。

※1 最初は2014年5月 (v170) 〜2015年4月 (v207) の1年間を扱おうと思っていたのですが,※0のページを見ると最古が 2014年3月27日 (v164) だったので,それなら大して変わらないと考え,最初からさらうことにしました。

※2 全てを扱うのは時間もないし大変なので,個人的に主要と判断したもののみを取り上げます。悪しからず。

@nota-ja
nota-ja / behind-the-scene-cf-push.open-paas-advent-calendar-2014-12-05.md
Last active August 10, 2017 10:20
Cloud Foundry のアプリケーション・デプロイ詳解 (一部省略版)

このgistは Open PaaS Advent Calendar 2014 の5日目の記事です。前日の記事は,jacopen さんの「cf-sshでCloud Foundryのコンテナ内に潜り込む)」でした。

#完全に1日遅れました。もうしわけありません。

今日は,Herokuや Cloud Foundry で使われているアプリケーションの実行環境を作る仕組み「buildpack」について書くつもりだったのですが,buildpackを説明する前に,まず「buildpackがアプリケーションのデプロイ全体の中でどこに使われているか」から説明した方が良いと思い直し,「Cloud Foundry でアプリケーションをデプロイする時の全体の流れ」について書くことにしました。Herokuはproprietaryなので,「buildpackがアプリケーションのデプロイ全体の中でどこに使われているか」については推測しかできないのですが,Cloud Foundry ならオープンソースなので,ソースを読めばその辺りもわかります。この辺が open paas ならではですね,と強引に advent calendar の趣旨に話を持っていってみました。

では,さっそく行ってみましょう。私の前回の記事同様,資料は以前作ったものの修正版(使い回しともいう)です。

Cloud Foundry におけるアプリケーションのデプロイの概要

@nota-ja
nota-ja / a-personal-thoughts-on-what-is-paas.open-paas-advent-calendar-2014-12-02.md
Last active August 29, 2015 14:10
"What is PaaS?" に関する個人的な考え (Open PaaS Advent Calendar 2014-12-02)

このgistは Open PaaS Advent Calendar 2014 の2日目の記事です。2日目にしてさっそく投稿遅れて本当に申し訳ありません 😓

さて,この記事では「PaaSとは何か」について個人的な考えを書くのですが,

  • 私は「俺が定義だ」と言えるほど [たくさんのPaaS][1] に触った訳ではありませんし,
  • 割と [以前発表した][2] 内容とかぶっています

ので,あまり大きな期待はせず,気軽に読んでいただけたらと思います。

それでは,始めましょう。

@nota-ja
nota-ja / 2014-09-10.gist.diff
Created September 10, 2014 23:58
Changes to make etherpad-lite-cf run with DB on Cloud Foundry
diff --git a/etherpad-lite-cf-org/node_modules/ep_etherpad-lite/node/utils/Settings.js b/etherpad-lite-cf/node_modules/ep_etherpad-lite/node/utils/Settings.js
index 9bfcae4..20794b5 100644
--- a/etherpad-lite-cf-org/node_modules/ep_etherpad-lite/node/utils/Settings.js
+++ b/etherpad-lite-cf/node_modules/ep_etherpad-lite/node/utils/Settings.js
@@ -222,7 +222,28 @@ exports.reloadSettings = function reloadSettings() {
console.warn("You need to set a sessionKey value in settings.json, this will allow your users to reconnect to your Etherpad Instance if your instance restarts");
}
+ if (process.env.DATABASE_URL) {
+ var parseDbUrl = require("parse-database-url");
@nota-ja
nota-ja / ccng-routes.v180.txt
Last active August 29, 2015 14:05
Cloud Foundry's Cloud Controller NG routes (submoduled from cf-release v180)
####### DELETE /services/:name {:controller => "VCAP::CloudController::LegacyService", :action => "delete"}
####### DELETE /services/v1/offerings/:label_and_version {:controller => "VCAP::CloudController::LegacyServiceGateway", :action => "delete"}
####### DELETE /services/v1/offerings/:label_and_version/:provider {:controller => "VCAP::CloudController::LegacyServiceGateway", :action => "delete"}
####### DELETE /v2/app_events/:guid {:controller => "VCAP::CloudController::AppEventsController", :action => "delete"}
####### DELETE /v2/apps/:guid {:controller => "VCAP::CloudController::AppsController", :action => "delete"}
####### DELETE /v2/apps/:guid/events/:other_id {:controller => "VCAP::CloudController::Ap
@nota-ja
nota-ja / ccng-routes.v179.txt
Last active August 29, 2015 14:05
Cloud Foundry's Cloud Controller NG routes (submoduled from cf-release v179)
####### DELETE /services/:name {:controller => "VCAP::CloudController::LegacyService", :action => "delete"}
####### DELETE /services/v1/offerings/:label_and_version {:controller => "VCAP::CloudController::LegacyServiceGateway", :action => "delete"}
####### DELETE /services/v1/offerings/:label_and_version/:provider {:controller => "VCAP::CloudController::LegacyServiceGateway", :action => "delete"}
####### DELETE /v2/app_events/:guid {:controller => "VCAP::CloudController::AppEventsController", :action => "delete"}
####### DELETE /v2/apps/:guid {:controller => "VCAP::CloudController::AppsController", :action => "delete"}
####### DELETE /v2/apps/:guid/events/:other_id {:controller => "VCAP::CloudController::Ap
@nota-ja
nota-ja / ccng-routes.v178.txt
Created August 14, 2014 11:48
Cloud Foundry's Cloud Controller NG routes (submoduled from cf-release v178) (I feel very strange because this is identical to v172)
####### DELETE /services/:name {:controller => "VCAP::CloudController::LegacyService", :action => "delete"}
####### DELETE /services/v1/offerings/:label_and_version {:controller => "VCAP::CloudController::LegacyServiceGateway", :action => "delete"}
####### DELETE /services/v1/offerings/:label_and_version/:provider {:controller => "VCAP::CloudController::LegacyServiceGateway", :action => "delete"}
####### DELETE /v2/app_events/:guid {:controller => "VCAP::CloudController::AppEventsController", :action => "delete"}
####### DELETE /v2/apps/:guid {:controller => "VCAP::CloudController::AppsController", :action => "delete"}
####### DELETE /v2/apps/:guid/events/:other_id {:controller => "VCAP::CloudController::Ap
@nota-ja
nota-ja / ccng-routes.v177.txt
Created August 12, 2014 10:05
Cloud Foundry's Cloud Controller NG routes (submoduled from cf-release v177)
####### DELETE /services/:name {:controller => "VCAP::CloudController::LegacyService", :action => "delete"}
####### DELETE /services/v1/offerings/:label_and_version {:controller => "VCAP::CloudController::LegacyServiceGateway", :action => "delete"}
####### DELETE /services/v1/offerings/:label_and_version/:provider {:controller => "VCAP::CloudController::LegacyServiceGateway", :action => "delete"}
####### DELETE /v2/app_events/:guid {:controller => "VCAP::CloudController::AppEventsController", :action => "delete"}
####### DELETE /v2/apps/:guid {:controller => "VCAP::CloudController::AppsController", :action => "delete"}
####### DELETE /v2/apps/:guid/events/:other_id {:controller => "VCAP::CloudController::Ap