Skip to content

Commit 8d4bfd1

Browse files
committed
feat: Support rendering
Signed-off-by: Alexander Kurbatov <[email protected]>
1 parent 5b57997 commit 8d4bfd1

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ LABEL maintainer="[email protected]"
44

55
WORKDIR /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

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# docker-sc2
22
Dockerized StarCraft 2 Linux application.
33

4-
## Usage
4+
## Basic usage
55
1. 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

1516
3. Connect to the game.
1617
Example 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
1936
Copyright (c) 2021-2022 Alexander Kurbatov
2037

0 commit comments

Comments
 (0)