Dockerfile for servatrice
Compile & install servatrice Unhandled currently: servatrice.ini modification mysql setup/config/connection
This commit is contained in:
parent
14e8fcdd44
commit
7ac3201811
3 changed files with 49 additions and 0 deletions
12
.dockerignore
Normal file
12
.dockerignore
Normal 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
34
Dockerfile
Normal 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
|
|
@ -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.
|
- `-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.
|
- `-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
|
# Running
|
||||||
|
|
||||||
`oracle` fetches card data
|
`oracle` fetches card data
|
||||||
|
|
Loading…
Reference in a new issue