Skip to content

Commit

Permalink
feat: Support rendering
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Kurbatov <[email protected]>
  • Loading branch information
alkurbatov committed Aug 15, 2022
1 parent 5b57997 commit 8d4bfd1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ LABEL maintainer="[email protected]"

WORKDIR /StarCraftII

RUN dnf install -y unzip wget \
RUN dnf install -y \
libglvnd-devel \
mesa-libOSMesa-devel \
unzip \
wget \
&& groupadd --system --gid 202 sc2 \
&& useradd --system --gid 202 --no-create-home --uid 202 sc2

Expand Down
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# docker-sc2
Dockerized StarCraft 2 Linux application.

## Usage
## Basic usage
1. Pull the latest image:
```bash
$ docker pull alkurbatov/sc2
Expand All @@ -11,10 +11,27 @@ $ docker pull alkurbatov/sc2
```
$ docker run -p 8167:8167 alkurbatov/sc2
```
Full list of supported command line options described [here](https://github.com/Blizzard/s2client-proto/blob/master/docs/linux.md).

3. Connect to the game.
Example code for the C++ API can be found [here](https://github.com/cpp-sc2/scrubber).

## Advanced usage
To change the listening port, e.g. to 8888:
```bash
$ docker run -it --rm -p 8888:8888 sc2 -port 8888
```

To run with enabled software rendering:
```bash
$ docker run -it --rm -p 8167:8167 sc2 -port 8167 -osmesapath libOSMesa.so
```

To run with enabled hardware rendering:
```bash
$ docker run -it --rm -p 8167:8167 sc2 -port 8167 -eglpath libEGL.so
```

## License
Copyright (c) 2021-2022 Alexander Kurbatov

Expand Down

0 comments on commit 8d4bfd1

Please sign in to comment.