generated from PoCInnovation/open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (35 loc) · 1.63 KB
/
Makefile
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
41
42
43
44
45
46
run :
python stable_baseline_agent/agent/train.py
setup : install-python3.8 download-ExplosiveAI install-ExplosiveAI install-requirements
install-python3.8 :
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl
-curl https://pyenv.run | bash
-~/.pyenv/bin/pyenv install 3.8.13
~/.pyenv/bin/pyenv global 3.8.13
install-requirements :
pip freeze --exclude bomberman > requirements.txt
pip install -r requirements.txt
download-ExplosiveAI :
rm -rf ExplosiveAI
git clone https://github.com/42-AI/ExplosiveAI.git
mkdir ExplosiveAI/simulator
cd ExplosiveAI/simulator; gdown https://drive.google.com/file/d/11rBSVLNfXvsAdXlUnqWcn05cIzaTz6td/view?usp=sharing --fuzzy -O build.zip
cd ExplosiveAI/simulator; unzip build.zip; mv speed_headless_build build
install-ExplosiveAI :
cd ExplosiveAI; chmod +x simulator/build/bomber.x86_64
cd ExplosiveAI; python3 -m pip install build
cd ExplosiveAI; python3 -m build
cd ExplosiveAI; python3 -m pip install dist/bomberman-0.1.0-py3-none-any.whl
install-anaconda :
cd ~; curl https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh > anaconda.sh
cd ~;
run-ExplosiveAI :
cd ExplosiveAI; python fight.py
docker-build : docker-build-ExplosiveAI
docker build -t bomberman .
docker-build-requirements :
docker build -t bomberman-requirements -f Dockerfile-requirements .
docker-build-ExplosiveAI : docker-build-requirements
docker build -t bomberman-explosiveai -f Dockerfile-ExplosiveAI .
docker-run : docker-build
docker run bomberman