diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..c04711aa --- /dev/null +++ b/.dockerignore @@ -0,0 +1,12 @@ +.git/ +CONTRIBUTING.md +Dockerfile +TODO.md +build/ +cockatrice/ +doc/ +oracle/ +sounds/ +travis-compile.sh +travis-dependencies.sh +zonebg/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..4e03153c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,34 @@ +FROM ubuntu:trusty +MAINTAINER Gavin Bisesi + +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 diff --git a/README.md b/README.md index e6cacd46..88f94081 100644 --- a/README.md +++ b/README.md @@ -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