Git Product home page Git Product logo

oxce-docker's Introduction

Get latest version of OpenXcom Extended

bash get-latest.sh

Build image

bash build-latest.sh

Publish to docker hub

docker login
docker push pedroterzero/oxce:"$(cat VERSION)"
docker push pedroterzero/oxce:latest

Initial setup (needed the first time, and after update)

Regular docker

  • Create the container
    docker run \
     --name oxce \
     -e "MAP_UID=$(id -u)" \
     -e "MAP_GID=$(id -g)" \
     -e "PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native" \
     -e DISPLAY \
     -v "/tmp/.X11-unix:/tmp/.X11-unix:ro" \
     -v "${XDG_RUNTIME_DIR}/pulse/native:${XDG_RUNTIME_DIR}/pulse/native:ro" \
     -v "${HOME}/.config/pulse/cookie:/home/oxce/.config/pulse/cookie:ro" \
     -v "${PWD}/config:/home/oxce/.config/openxcom" \
     -v "${PWD}/UFO:/app/UFO" \
     -v "${PWD}/TFTD:/app/TFTD" \
     -v "${PWD}/user:/app/user" \
     pedroterzero/oxce:latest

Rootless docker

  • Create the container
    docker run \
     --name oxce \
     -e "PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native" \
     -e DISPLAY \
     -v "/tmp/.X11-unix:/tmp/.X11-unix:ro" \
     -v "${XDG_RUNTIME_DIR}/pulse/native:${XDG_RUNTIME_DIR}/pulse/native:ro" \
     -v "${HOME}/.config/pulse/cookie:/root/.config/pulse/cookie:ro" \
     -v "${PWD}/config:/root/.config/openxcom" \
     -v "${PWD}/UFO:/app/UFO" \
     -v "${PWD}/TFTD:/app/TFTD" \
     -v "${PWD}/user:/app/user" \
     pedroterzero/oxce:rootless

All subsequent runs

docker start oxce

Updating OXCE (when a new image gets published)

docker pull pedroterzero/oxce
docker rm -f oxce

Then recreate using command from initial setup.

Updating OXCE for Rootless

docker pull pedroterzero/oxce:rootless
docker rm -f oxce

Then recreate using command from initial setup.

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.