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
HashiCorpの新ツール 「Waypoint」をCloud Runで使ってみた
Search
Ryuji Tsutsui
November 15, 2020
Technology
0
390
HashiCorpの新ツール 「Waypoint」をCloud Runで使ってみた
GCPUG Shonan vol.56 5周年 LT
Ryuji Tsutsui
November 15, 2020
Tweet
Share
More Decks by Ryuji Tsutsui
See All by Ryuji Tsutsui
本番運用を想定したDjango settings.pyの書き方入門(OSC Fall 2021 version)
ryu22e
1
1.1k
本番運用を想定したDjango settings.pyの書き方入門
ryu22e
1
2.2k
os.makedirsの細かすぎるセキュリティの話
ryu22e
0
50
Pythonチュートリアルイベント「Python Boot Camp」の紹介
ryu22e
0
170
Pythonとコミュニティと私
ryu22e
0
97
Other Decks in Technology
See All in Technology
IBC 2024 動画技術関連レポート / IBC 2024 Report
cyberagentdevelopers
PRO
1
110
OCI Vault 概要
oracle4engineer
PRO
0
9.7k
オープンソースAIとは何か? --「オープンソースAIの定義 v1.0」詳細解説
shujisado
9
1.1k
OS 標準のデザインシステムを超えて - より柔軟な Flutter テーマ管理 | FlutterKaigi 2024
ronnnnn
0
190
AGIについてChatGPTに聞いてみた
blueb
0
130
rootlessコンテナのすゝめ - 研究室サーバーでもできる安全なコンテナ管理
kitsuya0828
3
390
SSMRunbook作成の勘所_20241120
koichiotomo
3
160
心が動くエンジニアリング ── 私が夢中になる理由
16bitidol
0
100
AWS Lambdaと歩んだ“サーバーレス”と今後 #lambda_10years
yoshidashingo
1
180
Security-JAWS【第35回】勉強会クラウドにおけるマルウェアやコンテンツ改ざんへの対策
4su_para
0
180
サイバーセキュリティと認知バイアス:対策の隙を埋める心理学的アプローチ
shumei_ito
0
390
なぜ今 AI Agent なのか _近藤憲児
kenjikondobai
4
1.4k
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
420
Building Your Own Lightsaber
phodgson
103
6.1k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
How to Ace a Technical Interview
jacobian
276
23k
Transcript
HashiCorpͷ৽πʔϧ ʮWaypointʯΛCloud RunͰ ͬͯΈͨ Ryuji Tsutsui@ryu22e GCPUG Shonan vol.56 5प
LT 2020/11/14
ࣗݾհ • Ryuji Tsutsui@ryu22e • GCPUG Shonanελοϑ • ීஈຊͷϑΟϯςοΫܥاۀͰDjangoΣϒαʔϏεͷ ։ൃΛ͍ͯ͠·͢ɻ
• झຯ: өըؑʢ2015ʙʣɺ֨ಆٕ؍ઓʢ2019ʙʣ • ࠓίϩφͷ͍ͤͰɺͲͪΒ͋·Γߦ͚ͯͳ͍
ࠓ͍ͨ͜͠ͱ • Waypointͷ؆୯ͳղઆ • WaypointΛͬͯCloud RunʹσϓϩΠͯ͠ΈͨײʢσϞ͋Γʣ
Waypointͱ
Waypointͱ • TerraformɾVagrantͳͲͰ͓ೃછΈͷHashiCorp͕ࣾ202010݄15 ʹϦϦʔεͨ͠σϓϩΠπʔϧ • ؆୯ͳઃఆϑΝΠϧΛॻ͚ͩ͘Ͱ৭ʑͳϓϥοτϑΥʔϜͷσϓϩ Π͕Ͱ͖Δ
WaypointGoπʔϧ • ࣮ߦϑΝΠϧ1ݸμϯϩʔυ͢Δ͚ͩͰ͑Δ • macOSɾWindowsɾLinuxʹରԠ • HomebrewɾaptɾyumͳͲͰΠϯετʔϧͰ͖Δ
WaypointͬͯͲ͏͍͏ҙຯʁ • weblioʹΑΔͱ • ʮܦ࿏্ͷใʯͱͷ͜ͱ • https://ejje.weblio.jp/content/Waypoint
MBP͔Βެࣜͷαϯϓϧίʔυ ʢ https://github.com/hashicorp/ waypoint-examples.git ʣΛ Cloud RunʹσϓϩΠͯ͠ΈΔ
४උฤ
ඞཁͳͷ • waypoint(v0.1.5) • gcloud • Docker • git XBZQPJOUͱؔͳ͍͕ɺαϯϓϧίʔυ
ͷμϯϩʔυʹ͏ɻ
waypointΠϯετʔϧ $ brew tap hashicorp/tap $ brew install hashicorp/tap/waypoint
gcloudͷઃఆ $ gcloud auth application-default login $ gcloud config set
project <my-project-name> $ gcloud auth configure-docker
waypointαʔόʔىಈ $ docker pull hashicorp/waypoint:latest $ waypoint install --platform=docker -accept-tos
ιʔείʔυͷ४උ $ git clone https://github.com/hashicorp/waypoint-examples.git $ cd ./waypoint-examples/google-cloud-run/nodejs/
waypoint.hclͷ༰Λ֬ೝ & ฤू $ ls -l1 Procfile README.md index.js package.json
public views waypoint.hcl εϥΠυͩͱݟͮΒ͍ͷͰΤσΟλͰݟ·͢ɻ
σϓϩΠ·ͰͷྲྀΕ • build • CloudNative BuildpacksͰϏϧυ & GCRʹpush • deploy
• Cloud RunʹσϓϩΠ • release • σϓϩΠͨ͠ίʔυΛΞΫςΟϒԽ
waypointͷॳظԽ $ waypoint init XBZQPJOUTFSWFSʹϓϩδΣΫτ͕࡞ΒΕΔɻ
͍Α͍ΑσϓϩΠʂ
σϓϩΠͷσϞʢ2͙Β͍͔͔Δఆʣ $ waypoint up ίϚϯυ͜Ε͚ͩʂ
v0.1.5࣌ͰͷͬͯΈͨײ • ͋·ΓቕΔ͜ͱͳ͘͏͜ͱͰ͖ͨ • ϓϩδΣΫτͷ༰͔ΒϏϧυʹඞཁͳखॱΛࣗಈஅ͢Δͷָ͕ͩɺͪΐͬͱखͷࠞΜ ͩ͜ͱΛΔͱΉ͜ͱʹͳΓͦ͏ͳ༧ײ • ϦϞʔτͰར༻Ͱ͖Δwaypoint serverΛࣗલͰཱͯΔͷ͕໘ •
Ϛωʔδυͳwaypoint server͕΄͍͠ • waypoint server্ͷϓϩδΣΫτ͕ফͤͳ͍ • ফͤΔΑ͏ʹ͢Δ༧ఆ͋Δ͕ࠓͷͱ͜ΖͰ͖ͳ͍Β͍͠ • https://discuss.hashicorp.com/t/how-to-delete-the-project/16465/4
v0.1.5࣌ͰͷͬͯΈͨײ • Cloud RunͷσϓϩΠ͔͍ͬͯ͠ͳ͍͚Ͳɺ·ͩػೳతʹΓ͍ͯͳ͍ͱ͜Ζ͕ ͋Δײ͡ • ΦʔτεέʔϦϯάͷmaxࢦఆͰ͖ΔͷʹminͰ͖ͳ͍ • Cloud SQLVPCଓʹؔ͢Δύϥϝʔλ͕ͳͦ͞͏
• Hookػೳ͋ΔͷͰɺσϓϩΠޙʹgcloudͰઃఆͯ͠Δ͔͠ͳ͍͔ʁ • waypoint destroyͱ͍͏ίϚϯυ͕͋Δͷʹಈ͔ͳ͍ • Issueڍ͕͍ͬͯͨ https://github.com/hashicorp/waypoint/issues/533
·࣮ͩઓೖૣ͍ؾ͕͢Δ͚ͲɺOSSͷΣ ϒΞϓϦέʔγϣϯΛ͢ΔࡍͷσϑΝΫτ ελϯμʔυʹͳͬͯ͘ΕΔͱخ͍͠ͳʔ
WaypointͥͻͬͯΈͯͶʂ