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 4
4
5
5
WORKDIR /StarCraftII
6
6
7
- RUN dnf install -y unzip wget \
7
+ RUN dnf install -y \
8
+ libglvnd-devel \
9
+ mesa-libOSMesa-devel \
10
+ unzip \
11
+ wget \
8
12
&& groupadd --system --gid 202 sc2 \
9
13
&& useradd --system --gid 202 --no-create-home --uid 202 sc2
10
14
Original file line number Diff line number Diff line change 1
1
# docker-sc2
2
2
Dockerized StarCraft 2 Linux application.
3
3
4
- ## Usage
4
+ ## Basic usage
5
5
1 . Pull the latest image:
6
6
``` bash
7
7
$ docker pull alkurbatov/sc2
@@ -11,10 +11,27 @@ $ docker pull alkurbatov/sc2
11
11
```
12
12
$ docker run -p 8167:8167 alkurbatov/sc2
13
13
```
14
+ Full list of supported command line options described [ here] ( https://github.com/Blizzard/s2client-proto/blob/master/docs/linux.md ) .
14
15
15
16
3 . Connect to the game.
16
17
Example code for the C++ API can be found [ here] ( https://github.com/cpp-sc2/scrubber ) .
17
18
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
+
18
35
## License
19
36
Copyright (c) 2021-2022 Alexander Kurbatov
20
37
You can’t perform that action at this time.
0 commit comments