Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
非コンテナ環境において宣言的Deploymentを手軽に実現する / Declarative ...
Search
linyows
December 13, 2024
Programming
680
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
非コンテナ環境において宣言的Deploymentを手軽に実現する / Declarative deployment in non-container environments
社内イベント、バックエンド交流会LTで使った資料。
linyows
December 13, 2024
More Decks by linyows
See All by linyows
GoとClickhouseで作るRAGアプリ / Building RAG Application with Go and Clickhouse
linyows
1
310
Kubernetesを使わない環境にもCloud Nativeなデプロイを実現する / Enabling Cloud Native deployments without the complexity of Kubernetes
linyows
3
970
Protocol Buffersの型を超えて拡張性を得る / Beyond Protocol Buffers Types Achieving Extensibility
linyows
0
330
研究開発と実装OSSと プロダクトの好循環 / A virtuous cycle of research and development implementation OSS and products
linyows
1
1k
コードジェネレーターで 効率的な開発をする / Efficient development with code generators
linyows
0
530
研究を支える拡張性の高い ワークフローツールの提案 / Proposal of highly expandable workflow tools to support research
linyows
0
770
メール送信サーバの集約における透過型SMTP プロキシの定量評価 / Quantitative Evaluation of Transparent SMTP Proxy in Email Sending Server Aggregation
linyows
0
1.3k
透過型SMTPプロキシによる送信メールの可観測性向上: Update Edition / Improved observability of outgoing emails with transparent smtp proxy: Update edition
linyows
2
760
研究の再現性を高める 仕組みをGoでつくる / Creating a system to improve the reproducibility of research using go
linyows
1
430
Other Decks in Programming
See All in Programming
AmebaブログはKMPから卒業します
kmars0605
0
310
あなたの await、OS まで届いてる? strace で覗く JavaScript の非同期
hasutosasaki
1
1.9k
自作Discord音声botをLambda MicroVMsに移行した話 / Migrating My Discord Voice Bot to Lambda MicroVMs
akihisaikeda
1
260
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
320
React Native에 현대적인 빌드 도구 더하기: Rollipop 구현기
leegeunhyeok
0
180
Web Framework Benchmark Battle 2026, Any%
a_matsuda
3
3.1k
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
2
260
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
180
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
6
2.2k
조합이폭발하는디자인시스템이걸눈으로도테스트하라고요
giljongyu
0
710
flutter_test のその先へ — Flutter アプリの LLM 機能に「評価」という品質保証を
kosukesaigusa
0
180
Groovy as a human and AI friendly programming language
paulk
0
180
Featured
See All Featured
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
Test your architecture with Archunit
thirion
2
2.5k
Accessibility Awareness
sabderemane
1
290
Mobile First: as difficult as doing things right
swwweet
225
10k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
440
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Exploring anti-patterns in Rails
aemeredith
4
560
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
2
1k
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
890
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.1k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
610
Transcript
非コンテナ環境において宣言的 Deploymentを手軽に実現する Tomohisa Oda / 社内バックエンド交流会 LT @2024-12-13
Tomohisa Oda @linyows • 研究所 所属(2023年11月入社) • 前職では部門の技術責任者 • メールの研究をしながらガバクラプロ
ジェクトのお手伝い • 筋トレとテニスが趣味 • Fukuoka.go オーガナイザ
前提:本番環境 • 諸事情によりコンテナ環境ではなくVM環境(2024年だぞ?) • アプリはGo • KubernetesのローリングデプロイメントやCI/CDエコシステムが使えない • アプリのdeploymentどうする問題がある •
人の手を介さない何かしらの仕組みが必要 • VMはHA構成なので状況に応じて数が変動する予定
Deploy手法の選択肢 1. VMを構築するAnsibleで、アプリの更新も合わせてやる 2. Scpやrsyncなどで素朴にアップロードする 3. VMにビルド環境を作っておきgit cloneしてビルドする 4. DeployツールのCapistranoをつかう
これらはGithub Actionsから行う想定
Deploy手法の選択肢1 1. VMを構築するAnsibleで、アプリの更新も合わせてやる 2. Scpやrsyncなどで素朴にアップロードする 3. VMにビルド環境を作っておきgit cloneしてビルドする 4. DeployツールのCapistranoをつかう
これらはGithub Actionsから行う想定 🙅 更新頻度や責務領域が異なり、アプリ以外の問題でdeployできないとか、エンジニアが異なるとか
Deploy手法の選択肢2 1. VMを構築するAnsibleで、アプリの更新も合わせてやる 2. Scpやrsyncなどで素朴にアップロードする 3. VMにビルド環境を作っておきgit cloneしてビルドする 4. DeployツールのCapistranoをつかう
これらはGithub Actionsから行う想定 🙅 更新頻度や責務領域が異なり、アプリ以外の問題でdeployできないとか、エンジニアが異なるとか 🙅 簡単に実現できるがそのうち機能が追加されたりして正しく動作する保証がないままコピペされる
Deploy手法の選択肢3 1. VMを構築するAnsibleで、アプリの更新も合わせてやる 2. Scpやrsyncなどで素朴にアップロードする 3. VMにビルド環境を作っておきgit cloneしてビルドする 4. DeployツールのCapistranoをつかう
これらはGithub Actionsから行う想定 🙅 簡単に実現できるがそのうち機能が追加されたりして正しく動作する保証がないままコピペされる 🙅 せっかくGoはワンバイナリでdeployできるのに… そしてwebhookを用意する必要があり実は面倒 🙅 更新頻度や責務領域が異なり、アプリ以外の問題でdeployできないとか、エンジニアが異なるとか
Deploy手法の選択肢4 1. VMを構築するAnsibleで、アプリの更新も合わせてやる 2. Scpやrsyncなどで素朴にアップロードする 3. VMにビルド環境を作っておきgit cloneしてビルドする 4. DeployツールのCapistranoをつかう
これらはGithub Actionsから行う想定 🙅 せっかくGoはワンバイナリでdeployできるのに… そしてwebhookを用意する必要があり実は面倒 🙅 専用のツールなので機能は申し分ないが、Go使っていてRubyかーという気持ち 🙅 更新頻度や責務領域が異なり、アプリ以外の問題でdeployできないとか、エンジニアが異なるとか 🙅 簡単に実現できるがそのうち機能が追加されたりして正しく動作する保証がないままコピペされる
怒り駆動開発!(2018)
Dewy !!!
DewyはPull型deployツール Dewyの振る舞い 1. アプリのSupervisor的に起動 2. Github ReleasesやS3をポーリング 3. 最新があればダウンロードして起動 4.
グレースフルリスタート 5. Slackに通知とオーディットログ作成 Application or Files v1.2.2 Application or Files v1.2.3 Artifact Registry Notify Cache ɾGithub Releases ɾAWS S3 ɾGoogle Cloud Storage ɾGRPC Server 1. Polling 5. Reporting 6. Send 2. Download 3. Storage 4. Deployment ɾFile system ɾMemory ɾHashicorp Consul ɾRedis ] ɾSlack ɾSMTP Dewy https://github.com/linyows/dewy
Demo: https://github.com/linyows/dewy-testapp