Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
PHP7+Laravel5.3 on Google App Engine
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Takumi Yoshida
December 09, 2016
Technology
0
1.2k
PHP7+Laravel5.3 on Google App Engine
PHP7+Laravel5.3 on Google App Engine
Using Google app Engine Flexible Environment
Takumi Yoshida
December 09, 2016
Tweet
Share
More Decks by Takumi Yoshida
See All by Takumi Yoshida
golangで作るslackbot
ytakky2014
0
180
GKEでは StackDriver Loggingに どうやってログを送っているか
ytakky2014
3
5.4k
Auralization of Tech News +Change in technology interest for my 4 years.
ytakky2014
0
120
Webメディアでのdataflow活用
ytakky2014
1
560
睡眠をエンジニアリングする
ytakky2014
0
270
DevOps In All About
ytakky2014
0
3.6k
Other Decks in Technology
See All in Technology
AI駆動開発を事業のコアに置く
tasukuonizawa
1
180
変化するコーディングエージェントとの現実的な付き合い方 〜Cursor安定択説と、ツールに依存しない「資産」〜
empitsu
4
1.4k
配列に見る bash と zsh の違い
kazzpapa3
1
140
MCPでつなぐElasticsearchとLLM - 深夜の障害対応を楽にしたい / Bridging Elasticsearch and LLMs with MCP
sashimimochi
0
160
顧客の言葉を、そのまま信じない勇気
yamatai1212
1
350
Azure Durable Functions で作った NL2SQL Agent の精度向上に取り組んだ話/jat08
thara0402
0
180
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
5
1.6k
Introduction to Bill One Development Engineer
sansan33
PRO
0
360
usermode linux without MMU - fosdem2026 kernel devroom
thehajime
0
230
20260208_第66回 コンピュータビジョン勉強会
keiichiito1978
0
130
Bedrock PolicyでAmazon Bedrock Guardrails利用を強制してみた
yuu551
0
220
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
13k
Featured
See All Featured
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
The Spectacular Lies of Maps
axbom
PRO
1
520
We Have a Design System, Now What?
morganepeng
54
8k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
410
Ruling the World: When Life Gets Gamed
codingconduct
0
140
Into the Great Unknown - MozCon
thekraken
40
2.3k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.1k
The Cost Of JavaScript in 2023
addyosmani
55
9.5k
How to Think Like a Performance Engineer
csswizardry
28
2.4k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
80
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
320
Transcript
PHP7+Laravel5.3 on Google App Engine y.takky2014
Google App Engine is… • Paas • Language: Python, Java7,
PHP, Go • Auto Scaling • CloudSQL,BigData ….
• “App Engine runs your PHP web application using a
PHP 5.5.34 interpreter” PHP Version IUUQTDMPVEHPPHMFDPNBQQFOHJOFEPDTQIQSVOUJNF
Laravel5.3 “However, if you are not using Homestead, you will
need to make sure your server meets the following requirements: PHP >= 5.6.4 OpenSSL PHP Extension PDO PHP Extension Mbstring PHP Extension Tokenizer PHP Extension XML PHP Extension “ IUUQTMBSBWFMDPNEPDT
App Engine flexible environment • Google Compute Engine ϕʔε •
Auto Scaling • ࣮ߦڥͷఆ͕ٛͰ͖Δ • Docker Base
Step0. ४උ • Project࡞ • https://console.cloud.google.com/appengine? src=ac • Cloud SdkΠϯετʔϧ
• https://cloud.google.com/sdk/ • gcloud init • ࣗͷΞΧϯτ/projectͰೝূ͓ͯ͘͠
Step1. Laravel5.3ͷ४උ • https://github.com/laravel/laravel/releases • 5.3.16ΛDLͯ͠దͳσΟϨΫτϦʹҠಈ • ࠓճ ~/laravel5.3_on_appengine/appԼʹ Ҡಈ
• local͕php7Ͱ͋Εcomposer updateͱenv ४උ͓ͯ͘͠
Step2 make docker file • Dockerhubʹ͋ΔPHP7+ApacheΛ༻ • https://hub.docker.com/_/php/ • apacheͷઃఆϑΝΠϧͱLaravel5.3Λ
ADD͢Δ
Step3. make app.yaml • https://cloud.google.com/appengine/docs/ flexible/custom-runtimes/quickstart • ͦΜͳʹॻ͘͜ͱͳ͍
Step4. gcloud app deploy • gcloud app deploy • GAE্ʹσϓϩΠͰ͖Δ
• Dockerfile͔Βbuildͯ͠ʙͬͯײ͡ͳͷͰ ͔ͳΓ͔͔࣌ؒΔ
gcloud app browse • σϑΥϧτͷϒϥβͰ։͚Δ
Weak point • App engineʹൺͯߴ͍ 1ϲ݄Ͱ5000ԁ͙Β͍ • App engineͱ͍͍࣮࣭ͭͭCompute
Engine • ComputeEngineͷํ͕͍҆ • ෛՙߟ͑ͳ͚Εn1-standard/ Preemptible Ͱ $8ҎԼ?
Conclusion • GKE΄Ͳ͘͠ͳ͘DockerΛ͑Δɻͱ͍͏ ͍͍ • ࠓճ࡞ͬͨͷҎԼ • https://github.com/ytakky2014/ laravel5.3_on_appengine