File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed
Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 44
55WORKDIR /StarCraftII
66
7- RUN dnf install -y unzip wget \
7+ RUN dnf install -y \
8+ libglvnd-devel \
9+ mesa-libOSMesa-devel \
10+ unzip \
11+ wget \
812 && groupadd --system --gid 202 sc2 \
913 && useradd --system --gid 202 --no-create-home --uid 202 sc2
1014
Original file line number Diff line number Diff line change 11# docker-sc2
22Dockerized StarCraft 2 Linux application.
33
4- ## Usage
4+ ## Basic usage
551 . Pull the latest image:
66``` bash
77$ docker pull alkurbatov/sc2
@@ -11,10 +11,27 @@ $ docker pull alkurbatov/sc2
1111```
1212$ docker run -p 8167:8167 alkurbatov/sc2
1313```
14+ Full list of supported command line options described [ here] ( https://github.com/Blizzard/s2client-proto/blob/master/docs/linux.md ) .
1415
15163 . Connect to the game.
1617Example code for the C++ API can be found [ here] ( https://github.com/cpp-sc2/scrubber ) .
1718
19+ ## Advanced usage
20+ To change the listening port, e.g. to 8888:
21+ ``` bash
22+ $ docker run -it --rm -p 8888:8888 sc2 -port 8888
23+ ```
24+
25+ To run with enabled software rendering:
26+ ``` bash
27+ $ docker run -it --rm -p 8167:8167 sc2 -port 8167 -osmesapath libOSMesa.so
28+ ```
29+
30+ To run with enabled hardware rendering:
31+ ``` bash
32+ $ docker run -it --rm -p 8167:8167 sc2 -port 8167 -eglpath libEGL.so
33+ ```
34+
1835## License
1936Copyright (c) 2021-2022 Alexander Kurbatov
2037
You can’t perform that action at this time.
0 commit comments