Skip to content

Commit

Permalink
fix(iris): python version (#1999)
Browse files Browse the repository at this point in the history
  • Loading branch information
jspark2000 authored Aug 22, 2024
1 parent a788606 commit b27d9eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions apps/iris/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,9 @@ COPY --from=builder /build/iris .

# Install dependencies
RUN apt update && apt install -y \
curl gcc g++ openjdk-17-jdk python3.9 \
curl gcc g++ openjdk-17-jdk \
&& rm -rf /var/lib/apt/lists/*

# Set Python 3.9 as the default Python version
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1 \
&& update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1

# Install sandbox
RUN mkdir -p /app/sandbox/policy /app/sandbox/results \
&& mkdir -p /app/sandbox/logs/run /app/sandbox/logs/compile
Expand Down
2 changes: 1 addition & 1 deletion apps/iris/src/service/sandbox/langConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func NewLangConfig(file file.FileManager, javaPolicyPath string) *langConfig {
Language: PYTHON,
SrcName: "solution.py",
// [IMPORTANT] 도커 이미지 변경 시 파이썬 버전도 변경 필요함
ExeName: "__pycache__/solution.cpython-39.pyc", // Default Version on Debian 11 (bullseye)
ExeName: "__pycache__/solution.cpython-312.pyc", // Default Version on Debian 11 (bullseye)
MaxCompileCpuTime: 3000,
MaxCompileRealTime: 10000,
MaxCompileMemory: 128 * 1024 * 1024,
Expand Down

0 comments on commit b27d9eb

Please sign in to comment.