Loading...
2024. 3. 24. 22:52

[DevOps] ์™œ Docker๋Š” ์ปจํ…Œ์ด๋„ˆ ๋นŒ๋“œ ๋„๊ตฌ ์„ ํƒ์ง€์—์„œ ์ ์  ๋ฐฐ์ œ๋ ๊นŒ?

์ตœ๊ทผ ํšŒ์‚ฌ์˜ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐฐํฌ ๋ฐฉ์‹์ด ๋ณ€๊ฒฝ๋˜๋ฉด์„œ ํšŒ์‚ฌ์—์„œ ๋งก๊ณ  ์žˆ๋Š” ํ”„๋กœ์ ํŠธ ๋˜ํ•œ ๋ณ„๋„์˜ ๋ฐฐํฌ ๋„๊ตฌ๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ณ , ํ˜•์ƒ ๊ด€๋ฆฌ ์‹œ์Šคํ…œ(Github, Gitlab)์˜ ๋ฐฐํฌ ๋„๊ตฌ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ ํ•˜๊ฒŒ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ, ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ํ•˜๋ฉด์„œ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š” CI/CD ๋„๊ตฌ๊ฐ€ Docker executor๊ฐ€ ์•„๋‹Œ k8s executor๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์—ˆ๊ณ , ์—ฌ๊ธฐ์„œ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์ปจํ…Œ์ด๋„ˆ๋กœ ๋นŒ๋“œํ•  ๋•Œ ์‚ฌ์šฉํ•˜๋Š” ๋„๊ตฌ ๋˜ํ•œ Docker๊ฐ€ ์•„๋‹Œ Kaniko๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š” ์ ์„ ์•Œ๊ฒŒ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. Docker์˜ ๋‹จ์  ๊ฐ€๋” Docker๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด์„œ ์ด๋Ÿฐ ์ƒ๊ฐ์ด ์ข…์ข… ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค. ์ปจํ…Œ์ด๋„ˆ ์ด๋ฏธ์ง€๋ฅผ ๋นŒ๋“œํ•˜๊ณ  ๋ฐฐํฌํ•˜๊ธฐ ์œ„ํ•ด, ๊ตณ์ด Docker Engine์„ ์„ค์น˜ํ•ด์•ผ ํ• ๊นŒ? Docker์—์„œ๋Š” ๋นŒ๋“œ๋งŒ์„ ์œ„ํ•œ SDK๋Š” ..

2023. 10. 22. 15:10

[DevOps] M1 Macbook์—์„œ Oracle Database ์ปจํ…Œ์ด๋„ˆ ๋„์šฐ๊ธฐ 1

ํšŒ์‚ฌ์—์„œ Oracle์„ ์‚ฌ์šฉํ•˜์—ฌ ํ”„๋กœ์ ํŠธ๋ฅผ ์ง„ํ–‰ํ•˜๊ฒŒ ๋˜๋ฉด์„œ ๋กœ์ปฌ์—์„œ Docker, Podman ๋“ฑ์„ ์ด์šฉํ•˜์—ฌ ํ•„์š”ํ•œ ๋ฏธ๋“ค์›จ์–ด๋ฅผ ๋„์šฐ๊ณ , ์ž‘์—…์„ ์ง„ํ–‰ํ•˜๊ฒŒ ๋˜๋Š”๋ฐ ์‚ฌ์šฉํ•˜๋Š” ๊ฐœ๋ฐœ PC๊ฐ€ Macbook M1 Pro Max๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด์„œ ๋ช‡ ๊ฐ€์ง€ ๋ฌธ์ œ์ ์„ ๊ฒช๊ฒŒ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๋ฐ”๋กœ ์ปจํ…Œ์ด๋„ˆ๋กœ ๋„์šธ ๋ฏธ๋“ค์›จ์–ด์˜ ์•„ํ‚คํ…์ฒ˜์ธ๋ฐ, ๋งฅ๋ถ์ด Intel์˜ x86 ์•„ํ‚คํ…์ฒ˜์—์„œ Apple Silicon์˜ ARM ์•„ํ‚คํ…์ฒ˜๋กœ ๋ณ€๊ฒฝ๋˜๋ฉด์„œ ์ด์ œ๊นŒ์ง€ ๊ตฌ์ถ•ํ–ˆ๋˜ x86 ๊ณ„์—ด์˜ ์ปจํ…Œ์ด๋„ˆ ์ด๋ฏธ์ง€๋“ค์ด ์ œ๋Œ€๋กœ ๋™์ž‘ํ•˜์ง€ ์•Š๋Š” ๋ฌธ์ œ๊ฐ€ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค. ์ ์ง„์ ์œผ๋กœ ์ด๋Ÿฌํ•œ ๋ฌธ์ œ๋“ค์ด ํ•ด๊ฒฐ๋˜๊ณ  ์žˆ์—ˆ์ง€๋งŒ ์œ ๋… Oracle ๊ณ„์—ด์˜ ์ด๋ฏธ์ง€๋Š” ์ž˜ ํ•ด๊ฒฐ ๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค. Colima ์ด์— ๋Œ€ํ•ด ๊ฒ€์ƒ‰ํ•ด๋ณด๋ฉด M1 ๋งฅ๋ถ์—์„œ QEMU์™€ ๊ฐ™์€ ๊ฐ€์ƒ ๋จธ์‹ ์„ ์‚ฌ์šฉํ•˜์—ฌ Oracle ์ปจํ…Œ์ด๋„ˆ ์ด..

2021. 8. 29. 18:26

[Github] Github Actions์™€ Firebase Channel์„ ์ด์šฉํ•œ ์Šคํ…Œ์ด์ง€ ํ™˜๊ฒฝ ๊ตฌ์ถ•

ํ”„๋กœ์ ํŠธ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ์„ ๊ตฌ์ถ•ํ•˜๋Š” ๋ฐฉ๋ฒ•์—๋Š” ๋‘ ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๋‹ค. ๊ฐœ๋ฐœ ์ดˆ๊ธฐ์— ๊ฐ€๊นŒ์ด ์žˆ๋Š” ์„œ๋ฒ„๋ฅผ ์ด์šฉํ•ด ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ๋น ๋ฅด๊ฒŒ ๋ฐ˜์˜ํ•  ์ˆ˜ ์žˆ๋Š” ๊ฐœ๋ฐœ(Dev) ํ™˜๊ฒฝ, ์‹ค์ œ Production ํ™˜๊ฒฝ์— ์˜ฌ๋ฆฌ๊ธฐ ์ „, Production๊ณผ ๋˜‘๊ฐ™์€ ํ™˜๊ฒฝ์—์„œ ํ…Œ์ŠคํŠธ ํ•ด๋ณด๊ธฐ ์œ„ํ•œ Stage ํ™˜๊ฒฝ์ด ์žˆ์Šต๋‹ˆ๋‹ค. 2019.08.27 - [DevOps/Git] - Github Actions - React ํ”„๋กœ์ ํŠธ๋ฅผ Firebase์— Deploy ํ•˜๊ธฐ Github Actions - React ํ”„๋กœ์ ํŠธ๋ฅผ Firebase์— Deploy ํ•˜๊ธฐ Actions ๋งˆ์ง€๋ง‰ ํฌ์ŠคํŠธ๋กœ React ํ”„๋กœ์ ํŠธ๋ฅผ Firebase์— Deploy ํ•˜๋Š” ๊ธ€์„ ์จ๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. ์šฐ๋ฆฌ๋Š” ์ง€๋‚œ ํฌ์ŠคํŠธ์—์„œ YAML ํŒŒ์ผ์„ ๊ฐ€์ง€๊ณ  ๊ฐ„๋‹จํ•œ Workflow์™€ Matrix์™€..

2021. 8. 19. 00:32

[Github] Password authentication was removed์— ๋Œ€์ฒ˜ํ•˜๊ธฐ

์ €๋Š” OS X, Ubuntu Linux, Windows 3๊ฐ€์ง€ OS์—์„œ Github์„ ์ด์šฉํ•ด ์†Œ์Šค ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•˜๊ณ  ํ‘ธ์‹œํ•˜๋Š” ์ž‘์—…์„ ํ•ด์™”์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ, ์ด๋ฅผ ์—ฌํƒœ๊นŒ์ง€ ์ƒ๊ฐ์—†์ด ํŽธํ•œ๋Œ€๋กœ ์‚ฌ์šฉํ•˜์—ฌ ์–ด๋–ค OS์—์„œ๋Š” SSH Key๋ฅผ ์‚ฌ์šฉํ–ˆ๊ณ , ์–ด๋–ค OS์—์„œ๋Š” Password ์ธ์ฆ์„ ์‚ฌ์šฉํ•˜๊ณ , ์–ด๋–ค OS์—์„œ๋Š” OAuth Key๋ฅผ ์‚ฌ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋˜ ์˜ค๋Š˜, ๊ฐœ์ธ์šฉ PC์— ์„ค์น˜๋œ Ubuntu Linux์—์„œ ์ƒˆ๋กœ์šด ๋ชจ๋“ˆ์„ ๋งŒ๋“ค๊ณ , Github์— Push๋ฅผ ํ–ˆ๋”๋‹ˆ ์•„๋ž˜์™€ ๊ฐ™์€ ๋ฉ”์‹œ์ง€๋ฅผ ๋งŒ๋‚˜๊ฒŒ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. Password authentication is deprecated ์–ธ์  ๊ฐ€ ๋น„์Šทํ•œ ๋ฉ”์ผ์„ Github์—์„œ ์—ฌ๋Ÿฌ๋ฒˆ ๋ฐ›์•˜์—ˆ๋Š”๋ฐ, ์กฐ๋งŒ๊ฐ„ ์•ˆ์ „ํ•˜์ง€ ์•Š์€ ๋ณด์•ˆ ์žฅ์น˜๋“ค์— ๋Œ€ํ•ด ๋” ์ด์ƒ ์ง€์›ํ•˜์ง€ ์•Š๋Š”๋‹ค๋Š” ๋‚ด์šฉ์ด์—ˆ์Šต๋‹ˆ๋‹ค. ์ด์ œ ๊ทธ..

2019. 8. 27. 17:19

Github Actions - React ํ”„๋กœ์ ํŠธ๋ฅผ Firebase์— Deploy ํ•˜๊ธฐ

Actions ๋งˆ์ง€๋ง‰ ํฌ์ŠคํŠธ๋กœ React ํ”„๋กœ์ ํŠธ๋ฅผ Firebase์— Deploy ํ•˜๋Š” ๊ธ€์„ ์จ๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. ์šฐ๋ฆฌ๋Š” ์ง€๋‚œ ํฌ์ŠคํŠธ์—์„œ YAML ํŒŒ์ผ์„ ๊ฐ€์ง€๊ณ  ๊ฐ„๋‹จํ•œ Workflow์™€ Matrix์™€ Secrets ๋“ฑ์˜ ํ™˜๊ฒฝ ๋ณ€์ˆ˜๊นŒ์ง€๋ฅผ ๋‹ค๋ค„๋ดค์Šต๋‹ˆ๋‹ค. ์ด๋ฒˆ ๊ธ€์—์„œ๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ Google Firebase์— ๋Œ€ํ•œ ๊ธฐ๋ณธ์ ์ธ ์ง€์‹์ด ์žˆ๋Š” ์ƒํƒœ์—์„œ ์ง„ํ–‰์„ ํ•˜๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. Firebase์˜ ์ฒ˜์Œ๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜๊ฒŒ ๋˜๋ฉด ๊ธ€์ด ๊ธธ์–ด์ง€๊ธฐ ๋•Œ๋ฌธ์—, ๊ฐ„๋‹จํ•˜๊ฒŒ ์š”์ ๋งŒ ์งš๊ณ  ๋„˜์–ด๊ฐ€๊ธฐ ์œ„ํ•ด์„œ Firebase์˜ ๊ธฐ๋ณธ ํ™˜๊ฒฝ์ด ์ด๋ฏธ ๊ตฌ์ถ•๋œ ์ƒํƒœ์—์„œ ์ง„ํ–‰ํ•˜๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. Generate and Register Firebase Token ๋ฐฐํฌ ๋„๊ตฌ๋กœ Google Firebase์—์„œ ๊ณต์‹์ ์œผ๋กœ ์ œ๊ณตํ•˜๋Š” firebase-tools๋ฅผ ํ•œ ๋ฒˆ ..

2019. 8. 26. 14:10

Github Actions - Matrix & Secrets

์ด๋ฒˆ์—๋Š” Matrix๋ฅผ ํ™œ์šฉํ•˜์—ฌ ๋‹ค์ค‘ OS ํ™˜๊ฒฝ, ๋‹ค์–‘ํ•œ ๋ฒ„์ „์˜ ์–ธ์–ด, ํ”„๋ ˆ์ž„์›Œํฌ ๋“ฑ์„ ํ™œ์„ฑํ™” ์‹œํ‚ค๋Š” ์›Œํฌํ”Œ๋กœ์šฐ๋ฅผ ์ž‘์„ฑํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. Matrix Matrix๋Š” Array์™€ ์œ ์‚ฌํ•ฉ๋‹ˆ๋‹ค. YAML์—์„œ๋Š” ํŠน์ • ๋ณ€์ˆ˜๋ฅผ ์„ ์–ธํ•  ์ˆ˜ ์žˆ๋Š”๋ฐ, ์ด๋ฅผ ๋ณต์ˆ˜๊ฐœ๋กœ ์„ ์–ธํ•˜๊ณ  ์‹ถ์„ ๊ฒฝ์šฐ์—๋Š” Matrix๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์•„๋งˆ ๊ธฐ์กด์˜ Travis CI๋ฅผ ์จ๋ณด์‹  ๋ถ„๋“ค์ด๋ผ๋ฉด ์ต์ˆ™ํ•  ๊ฒƒ์ž…๋‹ˆ๋‹ค. name: Practice actions on: push: branches: - master pull_request: branches: - master jobs: build: runs-on: ubuntu-latest strategy: max-parallel: 4 matrix: python-version: [2.7, 3.5, 3.6, 3.7..

2019. 8. 24. 17:23

Github Actions - ๊ฐ„๋‹จํ•œ ์›Œํฌํ”Œ๋กœ์šฐ ์ƒ์„ฑํ•ด๋ณด๊ธฐ

์ง€๋‚œ ํฌ์ŠคํŠธ์—์„œ Github Actions์— ๋Œ€ํ•œ ๊ฐ„๋‹จํ•œ ์‚ฌ์šฉ๊ณผ ๊ธฐ๋Šฅ์„ ์†Œ๊ฐœํ•˜๋Š” ์‹œ๊ฐ„์„ ๊ฐ€์กŒ์—ˆ๋Š”๋ฐ์š”. ์ด๋ฒˆ์—๋Š” ์ง์ ‘ Github Actions๋ฅผ ์‚ฌ์šฉํ•ด ์›Œํฌํ”Œ๋กœ์šฐ๋ฅผ ์ž๋™ํ™”ํ•˜๋Š” ๊ฒƒ์„ ํ•ด๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. Start ๋จผ์ € ๋ ˆํฌ์ง€ํ„ฐ๋ฆฌ๋ฅผ Actions๋ฅผ ์‚ฌ์šฉํ•˜๊ณ ์ž ํ•˜๋Š” ํ”„๋กœ์ ํŠธ๋ฅผ clone ํ•˜๋„๋ก ํ•˜์ฃ . $ git clone [Repository] ํด๋ก ํ•œ ๋ ˆํฌ์ง€ํ„ฐ๋ฆฌ์— ์•„๋ž˜์˜ ๋””๋ ‰ํ„ฐ๋ฆฌ๋ฅผ ํ•œ ๊ฐœ ๋งŒ๋“ค์–ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. $ mkdir -p .github/workflows Actions๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด ๋จผ์ € Workflow๋ฅผ ์ฝ์„ ์ˆ˜ ์žˆ๋Š” ๊ฒฝ๋กœ๊ฐ€ ํ•„์š”ํ•œ๋ฐ, ์ด ๊ฒฝ๋กœ๊ฐ€ ๋ฐ”๋กœ .github ๋””๋ ‰ํ„ฐ๋ฆฌ์ž…๋‹ˆ๋‹ค. $ touch main.yml ๊ทธ๋ฆฌ๊ณ  main.yml ๋ผ๋Š” ์ด๋ฆ„์˜ ํŒŒ์ผ์„ ํ•œ ๊ฐœ ๋งŒ๋“ค์–ด์ค๋‹ˆ๋‹ค. ์ด๊ฒƒ์ด ์ด ๋ ˆํฌ์ง€ํ„ฐ๋ฆฌ์—์„œ Mai..

2019. 8. 24. 11:38

Github Actions ๋“œ๋””์–ด ํ™œ์„ฑํ™” ๋˜๋‹ค.

์•ˆ๋…•ํ•˜์„ธ์š”. ์˜ค๋Š˜์€ Github Actions์— ๋Œ€ํ•ด ์†Œ๊ฐœํ•˜๊ณ ์ž ํ•ฉ๋‹ˆ๋‹ค. Github Actions๋Š” Github์—์„œ ์ œ๊ณตํ•˜๋Š” ์›Œํฌํ”Œ๋กœ์šฐ ์ž๋™ํ™” ์‹œ์Šคํ…œ์œผ๋กœ ๊ธฐ์กด์—๋Š” ์ด๋ฅผ ๋Œ€์ฒดํ•˜๊ธฐ ์œ„ํ•ด Travis CI, Circle CI ๋“ฑ์˜ 3rd Party ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์‚ฌ์šฉํ–ˆ์—ˆ์Šต๋‹ˆ๋‹ค. Github Actions Features • GitHub Actions Easily build, package, release, update, and deploy your project in any language—on GitHub or any external system—without having to run code yourself. github.com ํ˜„์žฌ Github Actions๋Š” Beta ๊ธฐ๋Šฅ์œผ๋กœ ์ œ๊ณต๋˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๊ฐ ..