๐ฐ๐ท ํ๊ตญ์ด
Standard Python Environment
๐บ๐ธ English | ๐ฎ๐ณ เคนเคฟเคเคฆเฅ | ๐ฏ๐ต ๆฅๆฌ่ช | ๐จ๐ณ ็ฎไฝไธญๆ | ๐ช๐ธ Espaรฑol | ๐ง๐ท Portuguรชs (Brasil) | ๐ฐ๐ท ํ๊ตญ์ด | ๐ฉ๐ช Deutsch | ๐ซ๐ท Franรงais
Docker Compose๋ก ๊ตฌ์ฑ๋ ํ์ค Python ํ๊ฒฝ์ ๋๋ค.

๊ธฐ๋ฅ
- ์ฌํ์ฑ: ์์กด์ฑ์ด ์ปจํ ์ด๋ ๋ด๋ถ์ ๊ณ ์ ๋ฉ๋๋ค
- ๋จ์์ฑ: docker compose ๋ช ๋ น๋ง์ผ๋ก ์คํํ ์ ์์ต๋๋ค
- ์ด์์ฑ: Linux, macOS, Windows์์ ๋์ํฉ๋๋ค
- pip ready: Python ํจํค์ง๋ฅผ ์ฝ๊ฒ ์ค์นํ๊ณ ๊ด๋ฆฌํ ์ ์์ต๋๋ค
- JupyterLab support: (์ ํ ์ฌํญ) ์ปจํ ์ด๋ ์์์ notebooks๋ฅผ ์คํํ ์ ์์ต๋๋ค
- X11 forwarding: (์ ํ ์ฌํญ) GUI ๊ธฐ๋ฐ Python ์ฑ์ ์คํํ ์ ์์ต๋๋ค
์๊ตฌ ์ฌํญ
์์ํ๊ธฐ
Linux
# Clone this repository
git clone https://github.com/europanite/standard_python_environment.git
cd standard_python_environment
# Export host UID/GID
export HOST_UID=$(id -u)
export HOST_GID=$(id -g)
# Build and run
docker compose build
docker compose up -d
docker compose exec service bash
Windows
# Clone this repository
git clone https://github.com/europanite/standard_python_environment.git
cd standard_python_environment
# Build and run
docker compose build
docker compose up -d
docker compose exec service bash
์ด์ Python ์ปจํ ์ด๋ ์์ ์์ต๋๋ค ๐
JupyterLab์ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ http://localhost:8888 ์ ์ ์ํ๊ธฐ๋ง ํ๋ฉด ๋ฉ๋๋ค
ํ ์คํธ
# pytest
docker compose \
-f docker-compose.test.yml run \
--rm \
--entrypoint /bin/sh service_test \
-lc 'pytest'
# Lint
docker compose \
-f docker-compose.test.yml run \
--rm \
--entrypoint /bin/sh service_test \
-lc 'ruff check /app /tests'
๋ผ์ด์ ์ค
- Apache License 2.0