iOS

[M1 Mac] Homebrew / docker ์„ค์น˜

natrue 2021. 3. 28. 22:40
728x90

mac os์—์„œ๋Š” oracle DB ์„ค์น˜๊ฐ€ docker ์—†์ธ ๋ถˆ๊ฐ€๋Šฅํ•˜๋‹ค.

 

docker๋ฅผ ์„ค์น˜ํ•˜๊ธฐ ์ „ 

docker์— ๋Œ€ํ•ด ๋จผ์ € ์•Œ์•„๋ณด์ž.

 

docker๋ž€?

์ปจํ…Œ์ด๋„ˆ ๊ธฐ๋ฐ˜์˜ ์˜คํ”ˆ์†Œ์Šค ๊ฐ€์ƒํ™” ํ”Œ๋žซํผ

Linux ์ปจํ…Œ์ด๋„ˆ๋ฅผ ๋งŒ๋“ค๊ณ  ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•˜๋Š” ์ปจํ…Œ์ด๋„ˆํ™” ๊ธฐ์ˆ 
์žฅ์  : ํŽธ๋ฆฌํ•œ ๊ด€๋ฆฌ, ํ™•์žฅ์„ฑ, ๊ฐ€๋ฒผ์›€, ์œ ์ง€๋ณด์ˆ˜๊ฐ€ ์ข‹์Œ
๋ฐ˜๊ฐ€์ƒํ™”๋ณด๋‹ค ๊ฒฝ๋Ÿ‰ํ™”๋œ ๋ฐฉ์‹์ด๋‹ค.
ํ”„๋กœ๊ทธ๋žจ๋“ค์„ ์ด๋ฏธ์ง€ํ™”ํ•˜์—ฌ ์ €์žฅํ•จ.
์ปจํ…Œ์ด๋„ˆ์˜ ์ˆ˜์ •์ด๋‚˜ ์‚ญ์ œ์‹œ ์ด๋ฏธ์ง€๋Š” ๋ณ€ํ•˜์ง€์•Š๊ณ  ๋‚จ์•„์žˆ์Œ.

 

docker ์„ค์น˜ ์ „ Homebrew ์„ค์น˜

homebrew๋ž€? macOS์—์„œ ํ•„์š”ํ•˜์ง€๋งŒ ์• ํ”Œ์—์„œ ์ œ๊ณตํ•˜์ง€ ์•Š๋Š” ์†Œํ”„ํŠธ์›จ์–ด๋ฅผ ์ œ๊ณต' 

 

1) ์‚ฌ์ดํŠธ ์ ‘์†

 

Homebrew

The Missing Package Manager for macOS (or Linux).

brew.sh

2) mac ํ„ฐ๋ฏธ๋„ ์ ‘์† ํ›„ ๋ณต์‚ฌ ๋ถ™์—ฌ ๋„ฃ๊ธฐ

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

 

3) return key (= enter key) ๋ˆ„๋ฅด๊ธฐ 

 

4) xcode ๋‹ค์šด๋กœ๋“œ...

 

* ์„ค์น˜๋ฅผ ๋ˆŒ๋ €๋Š”๋ฐ ๋„คํŠธ์›Œํฌ ๋ฌธ์ œ๋กœ ์„ค์น˜๊ฐ€ ๋ถˆ๊ฐ€๋Šฅํ•˜๋‹ค๋‹ˆ... ๊ตฌ๋ฒ„์ „์ด๋ผ ์•ˆ๋˜๋‚˜ ๋ด„..

App Store Xcode download ํ•˜๊ธฐ (11GB.... ํ•œ 30-40๋ถ„ ๊ฑธ๋ฆฐ ๋“ฏ.. )

 

xcode ๋‹ค์šด๋กœ๋“œ๊ฐ€ ๋‹ค๋˜๋ฉด ์ด์šฉ ๋™์˜, ์ถ”๊ฐ€ ํŒŒ์ผ ์„ค์น˜ํ•˜๋ฉด ๋. 

 

5) ๋‹ค์‹œ 3) ํ„ฐ๋ฏธ๋„๋กœ ๋Œ์•„๊ฐ€ ์„ค์น˜ ํ›„ Homebrew version ํ™•์ธํ•˜๊ธฐ

brew --version

 

 

 


docker ์„ค์น˜

 

1. ์‚ฌ์ดํŠธ ์ ‘์†

 

Apple Silicon Tech Preview

 

docs.docker.com

 

2. Apple silicon Tech Preview - Download ํด๋ฆญ

 

3. ๋‹ค์šด๋กœ๋“œ๋œ Docker.dmg ํŒŒ์ผ ์—ด๊ธฐ

 

4. ๋„์ปค๋ฅผ applications์— ๋„ฃ๊ธฐ (๋ณต์‚ฌ) 

5. ์„ค์น˜๋œ Docker ์‹คํ–‰

 

6. startํด๋ฆญ 

 

7. Clone - Build - Run - share ์ˆœ์œผ๋กœ >> ๋ฒ„ํŠผ ํด๋ฆญ ํ›„ - Next Step ๋ˆ„๋ฅด๊ธฐ 

8. Docker ๋กœ๊ทธ์ธ (์—†๋‹ค๋ฉด ์‚ฌ์ดํŠธ ๊ฐ€์„œ ํšŒ์›๊ฐ€์ž…๋ถ€ํ„ฐ)

9. ์„ค์น˜ ๋ 

 

 

10. localhost ์ ‘์†ํ•ด๋ณด๊ธฐ 

 

 

 

 

 

์ฐธ๊ณ  : www.44bits.io/ko/post/setup-apple-silicon-m1-for-developers