-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
61 lines (50 loc) · 2.05 KB
/
Copy pathDockerfile
File metadata and controls
61 lines (50 loc) · 2.05 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV BAZEL_BUILD_OPTIONS="--cxxopt=-Wno-error=stringop-overflow"
ENV NVM_DIR=/root/.nvm
# Install system deps, Git, Python3 + symlink `python` → `python3`
RUN apt-get update && \
apt-get install -y --no-install-recommends \
software-properties-common \
curl gnupg lsb-release \
git \
build-essential clang-12 pkg-config psmisc unzip \
python3 python3-dev python3-distutils python3-pip \
python-is-python3 && \
rm -rf /var/lib/apt/lists/*
WORKDIR /marless
COPY . /marless
RUN bash ci/env/install-bazel.sh
RUN curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash && \
. $NVM_DIR/nvm.sh && \
nvm install 14 && \
nvm use 14 && \
cd python/ray/dashboard/client && \
npm ci && \
npm run build
WORKDIR /marless/python
RUN pip3 install -r requirements.txt && \
pip3 install -e . --verbose
WORKDIR /marless/marless
RUN pip3 install -e .
WORKDIR /marless
RUN pip3 install torch tensorflow gym statsmodels redis pettingzoo scikit-learn pygame && \
bash install_sc2.sh && \
git clone https://github.com/oxwhirl/smac.git && \
cd smac && \
pip3 install -e . && \
cd .. && \
mv 3rdparty/StarCraftII StarCraftII
RUN apt-get update && \
apt-get install -y --no-install-recommends curl gnupg lsb-release && \
curl -fsSL https://packages.redis.io/gpg \
| gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg && \
chmod 644 /usr/share/keyrings/redis-archive-keyring.gpg && \
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] \
https://packages.redis.io/deb $(lsb_release -cs) main" \
| tee /etc/apt/sources.list.d/redis.list && \
apt-get update && \
apt-get install -y redis && \
rm -rf /var/lib/apt/lists/*
EXPOSE 6379 8265
CMD ["bash", "-c", "redis-server --protected-mode no --daemonize yes & exec bash & python marless/marless_experiments/run.py --algo=PPO --max_epoch=100 --env=simple_adversary --mode=test --num_agents=6 --num_actors=50"]