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
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
130
GKEでは StackDriver Loggingに どうやってログを送っているか
ytakky2014
3
5.3k
Auralization of Tech News +Change in technology interest for my 4 years.
ytakky2014
0
83
Webメディアでのdataflow活用
ytakky2014
1
500
睡眠をエンジニアリングする
ytakky2014
0
210
DevOps In All About
ytakky2014
0
3.5k
Other Decks in Technology
See All in Technology
社外コミュニティで学び社内に活かす共に学ぶプロジェクトの実践/backlogworld2024
nishiuma
0
260
watsonx.ai Dojo #5 ファインチューニングとInstructLAB
oniak3ibm
PRO
0
160
ゼロから創る横断SREチーム 挑戦と進化の軌跡
rvirus0817
2
270
LINEスキマニにおけるフロントエンド開発
lycorptech_jp
PRO
0
330
サービスでLLMを採用したばっかりに振り回され続けたこの一年のあれやこれや
segavvy
2
420
20241220_S3 tablesの使い方を検証してみた
handy
4
400
第3回Snowflake女子会_LT登壇資料(合成データ)_Taro_CCCMK
tarotaro0129
0
190
LINEヤフーのフロントエンド組織・体制の紹介【24年12月】
lycorp_recruit_jp
0
530
podman_update_2024-12
orimanabu
1
270
Amazon Kendra GenAI Index 登場でどう変わる? 評価から学ぶ最適なRAG構成
naoki_0531
0
110
Snykで始めるセキュリティ担当者とSREと開発者が楽になる脆弱性対応 / Getting started with Snyk Vulnerability Response
yamaguchitk333
2
180
KnowledgeBaseDocuments APIでベクトルインデックス管理を自動化する
iidaxs
1
260
Featured
See All Featured
XXLCSS - How to scale CSS and keep your sanity
sugarenia
247
1.3M
Building Better People: How to give real-time feedback that sticks.
wjessup
365
19k
Site-Speed That Sticks
csswizardry
2
190
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.1k
The Cost Of JavaScript in 2023
addyosmani
45
7k
How to Think Like a Performance Engineer
csswizardry
22
1.2k
Faster Mobile Websites
deanohume
305
30k
Visualization
eitanlees
146
15k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
17
2.3k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
5
450
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
28
900
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