-
-
Notifications
You must be signed in to change notification settings - Fork 768
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (39 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
40 lines (39 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
services:
python-mode-tests:
build:
context: .
dockerfile: Dockerfile
args:
- PYTHON_VERSION=${PYTHON_VERSION:-3.11}
volumes:
# Mount the current directory to allow for development and testing
- .:/workspace/python-mode
environment:
- PYTHON_CONFIGURE_OPTS=--enable-shared
- PYMODE_DIR=/workspace/python-mode
- PYENV_ROOT=/opt/pyenv
- PATH=/usr/local/bin:/opt/pyenv/bin:/opt/pyenv/shims:$PATH
# Optional: Set PYTHON_VERSION to test with a specific Python version
# - PYTHON_VERSION=3.11.9
# Run tests by default
command: ["/usr/local/bin/run-tests"]
# Alternative service for interactive development
python-mode-dev:
build:
context: .
dockerfile: Dockerfile
args:
- PYTHON_VERSION=${PYTHON_VERSION:-3.11}
volumes:
- .:/workspace/python-mode
environment:
- PYTHON_CONFIGURE_OPTS=--enable-shared
- PYMODE_DIR=/workspace/python-mode
- PYENV_ROOT=/opt/pyenv
- PATH=/usr/local/bin:/opt/pyenv/bin:/opt/pyenv/shims:$PATH
# Optional: Set PYTHON_VERSION to test with a specific Python version
# - PYTHON_VERSION=3.11.9
# Start an interactive shell for development
command: ["/bin/bash"]
stdin_open: true
tty: true