-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from yhs0602/dev
➖ Make libpng optional
- Loading branch information
Showing
3 changed files
with
58 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
# Ubuntu 베이스 이미지 선택 | ||
FROM ubuntu:latest | ||
# Select ubuntu base image | ||
FROM ubuntu:22.04 | ||
|
||
# 환경 설정 및 필요한 소프트웨어 설치 | ||
# Install Java, Python, Git | ||
RUN apt-get update && \ | ||
apt-get install -y openjdk-17-jdk python3-pip git && \ | ||
apt-get install -y openjdk-21-jdk python3-pip git libgl1-mesa-dev libegl1-mesa-dev libglew-dev&& \ | ||
apt-get clean | ||
|
||
# pip를 사용하여 GitHub에서 Python 패키지 직접 설치 | ||
RUN pip3 install git+https://github.com/yhs0602/CraftGround | ||
RUN python3 --version | ||
RUN pip3 install --upgrade pip | ||
RUN pip3 install cmake | ||
|
||
# Python 사이트 패키지 경로를 환경변수에 추가 (pip 패키지 경로를 찾기 위함) | ||
ENV PYTHON_SITE_PACKAGES=/usr/local/lib/python3.*/dist-packages | ||
RUN pip3 install git+https://github.com/yhs0602/CraftGround.git@dev | ||
|
||
# craftground/MinecraftEnv 디렉토리로 이동하여 gradlew build 실행 | ||
RUN cd $(find $PYTHON_SITE_PACKAGES -type d -maxdepth 1 -name "craftground")/MinecraftEnv && chmod +x gradlew && ./gradlew build | ||
|
||
# 실험 파일이 추가될 작업 디렉토리 설정 | ||
# Clone test repository | ||
WORKDIR /workspace | ||
RUN echo "Cloning repository" | ||
RUN git clone https://github.com/yhs0602/minecraft-simulator-benchmark.git | ||
|
||
# 컨테이너 실행 시 기본 명령 설정 | ||
CMD ["bash"] | ||
# Set work directory and default execution | ||
WORKDIR /workspace/minecraft-simulator-benchmark | ||
RUN pip3 install wandb tensorboard moviepy git+https://github.com/DLR-RM/stable-baselines3.git | ||
RUN WANDB_MODE=offline PYTHONPATH=. python3 experiments/craftground_exp.py --mode raw --image_width 64x64 --load simulation --max-steps 100 | ||
ENTRYPOINT ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters