Docker environment for running mini-alphastar on https://github.com/liuruoze/mini-AlphaStar
144
Environment for testing liuruoze/mini-AlphaStar.
After installing docker, please run following command in your terminal.
docker pull hanxiwu/mini-alphastar:first_run
docker run -ti --name test-mini-alphastar hanxiwu/mini-alphastar:first_run bash
conda activate torch_1_7
python /mini-AlphaStar/run.py
use docker run -ti --name test-mini-alphastar --gpus all hanxiwu/mini-alphastar:first_run bash if you have GPUs. Installing GPU driver is out of scope of this text.
Be aware that the code here is a fork version. I need to modify the replay path and some other parameter.
You can use Dockerfile below and download file needed to build your own image.
Hope this will relief the pain when you first run mini-Alphastar. I think mini-Alphastar is an amazing work. Please enjoy!
Dockerfile here.
FROM nvidia/cuda:latest
# Dockerfile folder structure
# please place correspond resource as below
# /minias
# /minias/Dockerfile
# /minias/condarc
# /minias/pip.conf
# /minias/Anaconda3-2021.11-Linux-x86_64.sh
# /minias/SC2.4.6.0.67926.zip
# /minias/replay.zip
# copy anaconda
# copy StarCraftII 4.6.0 binary and replay
COPY . /minias
# download anaconda and install
RUN cd /minias \
&& bash Anaconda3-2021.11-Linux-x86_64.sh -b -p ~/anaconda \
&& export PATH=$PATH:$HOME/anaconda/bin
&& conda init \
&& cp /minias/condarc ~/.condarc \
&& conda clean -i
# install wget and git
# get mini-Alphastar repo
RUN apt-get update -y \
&& apt-get install -y \
git unzip \
&& rm -rf /var/lib/apt/lists/*
RUN cd / \
&& git clone https://github.com/cloneniu/mini-AlphaStar.git
# install virtual environment for miniAS
RUN mkdir ~/.pip \
&& cp /minias/pip.conf ~/.pip/ \
&& conda create -n torch_1_7 python=3.7 pytorch=1.7 -c pytorch -y \
&& conda activate torch_1_7 \
&& cd /mini-AlphaStar \
&& pip install -r requirements.txt
# # unzip StarCraftII binary to home
RUN cd /minias \
&& unzip -P iagreetotheeula SC2.4.6.0.67926.zip -d ~
# unzip replay to the replay path in code
RUN cd /minias \
&& unzip replay.zip -d /mini-AlphaStar/scripts/download_replay/third/
# change replay path in /mini-AlphaStar/alphastarmini/core/sl/transform_replay_data.py before run run.py
CMD python /mini-AlphaStar/run.py
Content type
Image
Digest
Size
17.6 GB
Last updated
almost 5 years ago
docker pull hanxiwu/mini-alphastar:first_run