diff --git a/Dockerfile b/Dockerfile index 37ceb9b..8f11b94 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,11 @@ LABEL maintainer="sir.alkurbatov@yandex.ru" 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 diff --git a/README.md b/README.md index 28576d3..1d64010 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # docker-sc2 Dockerized StarCraft 2 Linux application. -## Usage +## Basic usage 1. Pull the latest image: ```bash $ docker pull alkurbatov/sc2 @@ -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