Merge pull request #1191 from Cockatrice/docker

Dockerfile for servatrice
This commit is contained in:
Gavin Bisesi 2015-07-03 00:02:18 -04:00
commit dfd5c5e050
3 changed files with 49 additions and 0 deletions

12
.dockerignore Normal file
View file

@ -0,0 +1,12 @@
.git/
CONTRIBUTING.md
Dockerfile
TODO.md
build/
cockatrice/
doc/
oracle/
sounds/
travis-compile.sh
travis-dependencies.sh
zonebg/

34
Dockerfile Normal file
View file

@ -0,0 +1,34 @@
FROM ubuntu:trusty
MAINTAINER Gavin Bisesi <Daenyth@gmail.com>
RUN apt-get update && apt-get install -y software-properties-common
RUN apt-add-repository ppa:ubuntu-sdk-team/ppa
RUN apt-get update && apt-get install -y\
cmake\
git\
libprotobuf-dev\
libqt5svg5-dev\
libqt5webkit5-dev\
libsqlite3-dev\
protobuf-compiler\
qt5-default\
qtbase5-dev\
qtdeclarative5-dev\
qtmultimedia5-dev\
qttools5-dev-tools\
qttools5-dev
ENV dir /home/servatrice/code
WORKDIR $dir
RUN mkdir oracle
COPY COPYING COPYING
COPY CMakeLists.txt CMakeLists.txt
COPY cmake/ cmake/
COPY common/ common/
COPY servatrice/ servatrice/
COPY README.md README.md
WORKDIR build
RUN cmake .. -DWITH_QT4=0 -DWITH_SERVER=1 -DWITH_CLIENT=0 -DWITH_ORACLE=0 &&\
make &&\
make install

View file

@ -60,6 +60,9 @@ The following flags can be passed to `cmake`:
- `-DCMAKE_BUILD_TYPE=Debug` Compile in debug mode. Enables extra logging output, debug symbols, and much more verbose compiler warnings.
- `-DUPDATE_TRANSLATIONS=1` Configure `make` to update the translation .ts files for new strings in the source code. Note: Running `make clean` will remove the .ts files.
# Building servatrice Docker container
`docker build -t servatrice .`
# Running
`oracle` fetches card data