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
400
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.3k
os.makedirsの細かすぎるセキュリティの話
ryu22e
0
50
Pythonチュートリアルイベント「Python Boot Camp」の紹介
ryu22e
0
170
Pythonとコミュニティと私
ryu22e
0
100
Other Decks in Technology
See All in Technology
AIエージェントに脈アリかどうかを分析させてみた
sonoda_mj
2
130
OPENLOGI Company Profile for engineer
hr01
1
17k
OCI技術資料 : ファイル・ストレージ 概要
ocise
3
12k
Fabric 移行時の躓きポイントと対応策
ohata_ds
1
100
AI×医用画像の現状と可能性_2024年版/AI×medical_imaging_in_japan_2024
tdys13
0
1.1k
Unlearn Product Development - Unleashed Edition
lemiorhan
PRO
2
160
ソフトウェア開発における「パーフェクトな意思決定」/Perfect Decision-Making in Software Development
yayoi_dd
2
2.6k
能動的ドメイン名ライフサイクル管理のすゝめ / Practice on Active Domain Name Lifecycle Management
nttcom
0
310
DUSt3R, MASt3R, MASt3R-SfM にみる3D基盤モデル
spatial_ai_network
3
460
怖くない!ゼロから始めるPHPソースコードコンパイル入門
colopl
0
230
AWSの生成AIサービス Amazon Bedrock入門!(2025年1月版)
minorun365
PRO
5
280
20240522 - 躍遷創作理念 @ PicCollage Workshop
dpys
0
290
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
44
13k
YesSQL, Process and Tooling at Scale
rocio
170
14k
Gamification - CAS2011
davidbonilla
80
5.1k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.2k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
What's in a price? How to price your products and services
michaelherold
244
12k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
940
Mobile First: as difficult as doing things right
swwweet
222
9k
How GitHub (no longer) Works
holman
312
140k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
A Tale of Four Properties
chriscoyier
157
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ͥͻͬͯΈͯͶʂ