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
噂のマルチステージングビルドを試してみました
Search
chiroruxx
August 28, 2019
Technology
1
290
噂のマルチステージングビルドを試してみました
2019/08/28 PHP勉強会で発表した資料です。
chiroruxx
August 28, 2019
Tweet
Share
More Decks by chiroruxx
See All by chiroruxx
良い命名かを調べるリンターを作った + α
chiroruxx
0
57
GoLandを布教する会
chiroruxx
0
19
PHPはいつから死んでいるかの調査
chiroruxx
3
570
元phperから見たGoの良いところ
chiroruxx
0
53
Go Connectへの想い
chiroruxx
0
410
GraphQLに入門してみた
chiroruxx
2
290
ドキュメンテーションコメント再入門
chiroruxx
0
190
我流カンファレンス楽しみ術
chiroruxx
0
82
最初の一歩を踏み出す言葉
chiroruxx
4
1.4k
Other Decks in Technology
See All in Technology
The Role of Developer Relations in AI Product Success.
giftojabu1
0
120
安心してください、日本語使えますよ―Ubuntu日本語Remix提供休止に寄せて― 2024-11-17
nobutomurata
1
990
【Startup CTO of the Year 2024 / Audience Award】アセンド取締役CTO 丹羽健
niwatakeru
0
950
適材適所の技術選定 〜GraphQL・REST API・tRPC〜 / Optimal Technology Selection
kakehashi
1
160
ExaDB-D dbaascli で出来ること
oracle4engineer
PRO
0
3.8k
Evangelismo técnico: ¿qué, cómo y por qué?
trishagee
0
360
DMARC 対応の話 - MIXI CTO オフィスアワー #04
bbqallstars
1
160
Lexical Analysis
shigashiyama
1
150
データプロダクトの定義からはじめる、データコントラクト駆動なデータ基盤
chanyou0311
2
280
Python(PYNQ)がテーマのAMD主催のFPGAコンテストに参加してきた
iotengineer22
0
470
Can We Measure Developer Productivity?
ewolff
1
150
ノーコードデータ分析ツールで体験する時系列データ分析超入門
negi111111
0
410
Featured
See All Featured
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
The Cult of Friendly URLs
andyhume
78
6k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
Facilitating Awesome Meetings
lara
50
6.1k
Building Applications with DynamoDB
mza
90
6.1k
Scaling GitHub
holman
458
140k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
Building Your Own Lightsaber
phodgson
103
6.1k
Fireside Chat
paigeccino
34
3k
A designer walks into a library…
pauljervisheath
203
24k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
Why Our Code Smells
bkeepers
PRO
334
57k
Transcript
ᷚͷ ϚϧνεςʔδϯάϏϧυΛ ࢼͯ͠Έ·ͨ͠ 1)1ษڧձ!౦ژ લాਓ
ࣗݾհ w લాਓ w !DIJSPSVYYYY w หޢ࢜υοτίϜ w
࠷ॳʹ w %PDLFSͷϚϧνεςʔδϯάϏϧυͷΛ͠·͢ w ͬͯΔਓ৽͍͠ใͳ͍ͱࢥ͍·͢
ͱ͋ΔҊ݅ʹͯ w ͱ͋Δ৽ن։ൃͷҊ݅Λͬͨͱ͖ͷ w ͭͷཁ݅ ֎෦ύοέʔδΛ༻͢Δ w ύοέʔδ[JQͰ͞ΕΔ
ίϯςφӡ༻Λ͢Δ Ͳ͏ͬͯιʔεཧɾڥߏங͠Α͏͔ʁ
ߟ͑ͨํ๏ w [JQϑΝΠϧΛͦͷ··ίϛοτ͓ͯ͘͠ w ϥΠϒϥϦͷόʔδϣϯ্͕͕ͬͨΒߋ৽͍ͯ͘͠ w %PDLFSGJMFͰ[JQΛղౚ͠ɺஔ͍ͯ͘͠
%PDLFSGJMF FROM alpine:latest RUN apk add --no-cache --update \ nginx
\ zip COPY ./package.zip /var/www RUN cd /var/www && \ unzip package.zip && \ chown -R nginx:nginx package && \ rm package.zip RUN mkdir -p /run/nginx EXPOSE 80 CMD nginx -g "daemon off;"
%PDLFSGJMF FROM alpine:latest RUN apk add --no-cache --update \ nginx
\ zip COPY ./package.zip /var/www RUN cd /var/www && \ unzip package.zip && \ chown -R nginx:nginx package && \ rm package.zip RUN mkdir -p /run/nginx EXPOSE 80 CMD nginx -g "daemon off;"
ඍົͳ w ӡ༻্Ͱ༻͠ͳ͍[JQΛΠϯετʔϧ͍ͯ͠Δ w VO[JQ·ΘΓͷॲཧ͕ͯ͘ݟͮΒ͍ w ιʔεΛஔͯ͠αʔόΛىಈ͍͚ͨͩ͠ͳͷʹ͍
ϚϧνεςʔδϯάϏϧυ✨
ϚϧνεςʔδϯάϏϧυ w Ұ࣌తͳ%PDLFSΠϝʔδΛ࡞ͯ͠ɺ%PDLFSGJMFͰ༻ Ͱ͖Δ w ؔ৺ࣄͷॏෳͷআʹޮՌత w Ωϟογϡޮྑ͍Β͍͠ w ʮ%PDLFSGJMFΛॻͨ͘ΊͷϕετϓϥΫςΟεʯΛࢀߟʹ͠
ͯͶ
%PDLFSGJMF શମ FROM alpine:latest as package RUN apk add --no-cache
--update \ zip COPY ./package.zip /opt RUN cd /opt && \ unzip package.zip FROM alpine:latest RUN apk add --no-cache --update \ nginx COPY --from=package --chown=nginx:nginx /opt/package /var/www/package RUN mkdir -p /run/nginx EXPOSE 80 CMD nginx -g "daemon off;"
%PDLFSGJMF શମ FROM alpine:latest as package RUN apk add --no-cache
--update \ zip COPY ./package.zip /opt RUN cd /opt && \ unzip package.zip FROM alpine:latest RUN apk add --no-cache --update \ nginx COPY --from=package --chown=nginx:nginx /opt/package /var/www/package RUN mkdir -p /run/nginx EXPOSE 80 CMD nginx -g "daemon off;" Ұ࣌తͳΠϝʔδ ຊମ
%PDLFSGJMF QBDLBHF FROM alpine:latest as package RUN apk add --no-cache
--update \ zip COPY ./package.zip /opt RUN cd /opt && \ unzip package.zip
%PDLFSGJMF CPEZ FROM alpine:latest RUN apk add --no-cache --update \
nginx COPY --from=package --chown=nginx:nginx \ /opt/package /var/www/package RUN mkdir -p /run/nginx EXPOSE 80 CMD nginx -g "daemon off;"
·ͱΊ w ಡΈ͘͢ͳͬͨ w ʮύοέʔδͷཧ VO[JQ ʯͱʮαʔόͷઃఆʯΛ ͚ͯॻ͚ΔΑ͏ʹͳͬͨ w %PDLFS3FHJTUPSZ͕͑Εɺύοέʔδཧ
ผΠϝʔδͰཧͯ͠0, FROM /url/to/registry/ as package FROM alpine:latest RUN apk add …
͓·͚ w $PNQPTFSͷΠϯετʔϧɺωοτͰௐΔͱΈΜͳDVSM͠ ͯؤுͬͯ·͕͢ɾɾɾ RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer
͓·͚ w ࠓճͷ༰Λ͑ɺ؆୯ʹಋೖόʔδϣϯཧͰ͖·͢ Ͷ FROM composer:{version} as composer FROM alpine:latest
… COPY --from=composer /usr/bin/composer /usr/bin/composer …