Giter Club home page Giter Club logo

starcraft's Introduction

StarCraft Brood War

Docker Images for StarCraft Brood War v1.18 & v1.16.1

Image of BroodWar

Tested on Ubuntu 16.04 with Docker 17.03.1-ce.

Use StarCraft Brood War v1.18

Installed from the official blizzard website.

Pull the image (from the host):

docker pull nidup/starcraft:v118

Run the image (from the host):

docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --security-opt seccomp=unconfined nidup/starcraft:v118 bash

Launch the game (from the image):

wine ~/.wine/drive_c/Program\ Files\ \(x86\)/StarCraft/StarCraft.exe

Use StarCraft Brood War v1.16.1

Pull the image (from the host):

docker pull nidup/starcraft:v116

Run the image (from the host):

docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --security-opt seccomp=unconfined nidup/starcraft:v116 bash

Launch the game (from the image):

wine ~/.wine/drive_c/Program\ Files\ \(x86\)/StarCraft1161/StarCraft.exe

Troubleshooting

On your host:

  • your user id and group id should be 1000
  • your user must be in the docker group
  • you shouldn't run docker with sudo (to be able to use the host server x)

To check your user and group id use the command id:

uid=1000(nico) gid=1000(nico) groups=1000(nico), 999(docker)

Sources

Dockerfile

Update the Images

Update the Images

starcraft's People

Contributors

nidup avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

starcraft's Issues

Add legal disclaimer

Legal

Starcraft and Starcraft: Broodwar are trademarks of Blizzard Entertainment. BWAPI is a third party "hack" that violates the End User License Agreement (EULA). It is strongly recommended to purchase a legitimate copy of Starcraft: Broodwar from Blizzard Entertainment before using BWAPI.

Works with nvidia drivers

So, the solution comes in big part from this:
NVIDIA/nvidia-docker#136 (comment)

A working solution is to:

  • use a Dockerfile, mix of the previous page and this repo
  • use nvidia-docker to run the image $ nvidia-docker run -it --env="DISPLAY" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" yolo bash
  • do the install manually
  • update wine config to display it in a window (800x600 works)

Dockerfile:

FROM ubuntu

# install GLX-Gears
RUN apt-get update && apt-get install -y \
    mesa-utils && \
    rm -rf /var/lib/apt/lists/*

# nvidia-docker hooks
LABEL com.nvidia.volumes.needed="nvidia_driver"
ENV PATH /usr/local/nvidia/bin:${PATH}
ENV LD_LIBRARY_PATH /usr/local/nvidia/lib:/usr/local/nvidia/lib64:${LD_LIBRARY_PATH}

RUN dpkg --add-architecture i386

RUN apt-get update && apt-get install -y wget software-properties-common python-software-properties apt-transport-https

RUN wget -nc https://repos.wine-staging.com/wine/Release.key
RUN apt-key add Release.key
RUN apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'

RUN more /etc/apt/sources.list | grep 'wi'

RUN apt-get update && apt-get install -y --install-recommends winehq-staging && rm -rf /var/cache/apt/

# Replace 1000 with your user / group id
RUN export uid=1000 gid=1000 && \
mkdir -p /home/developer && \
mkdir -p /etc/sudoers.d && \
echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd && \
echo "developer:x:${uid}:" >> /etc/group && \
echo "developer ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/developer && \
chmod 0440 /etc/sudoers.d/developer && \
chown ${uid}:${gid} -R /home/developer

USER developer
ENV HOME /home/developer
WORKDIR /home/developer

RUN mkdir -p /home/developer/install
VOLUME /home/developer/install

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.