aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-29 17:14:18 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-29 17:14:18 +0200
commit47373829babc4a1e2296efe4c8ae0770cfd47211 (patch)
treee7945cfbed365b1db2feb9dcbb3a080256d1b139
parente2bd7d695474314aa910a36c664e4dc1c7e39d8c (diff)
downloadkristall-47373829babc4a1e2296efe4c8ae0770cfd47211.tar.gz
Adds docker build files based on ubuntu 18.04.
-rw-r--r--ci/Dockerfile13
-rwxr-xr-xci/compile.sh13
-rw-r--r--ci/docker-compose.yml6
3 files changed, 32 insertions, 0 deletions
diff --git a/ci/Dockerfile b/ci/Dockerfile
new file mode 100644
index 0000000..48e2a24
--- /dev/null
+++ b/ci/Dockerfile
@@ -0,0 +1,13 @@
+FROM ubuntu:18.04
+
+RUN apt-get update
+RUN apt-get install -y git
+RUN apt-get install -y qt5-default qt5-qmake qtmultimedia5-dev
+RUN apt-get install -y libqt5svg5-dev
+RUN apt-get install -y libssl-dev make g++
+
+COPY compile.sh /compile.sh
+
+VOLUME /artifacts
+
+ENTRYPOINT /compile.sh \ No newline at end of file
diff --git a/ci/compile.sh b/ci/compile.sh
new file mode 100755
index 0000000..b0392de
--- /dev/null
+++ b/ci/compile.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+set -eo pipefail
+
+rm -rf /kristall
+
+git clone https://github.com/MasterQ32/kristall /kristall
+
+cd /kristall
+
+make
+
+cp kristall /artifacts
diff --git a/ci/docker-compose.yml b/ci/docker-compose.yml
new file mode 100644
index 0000000..7879b2c
--- /dev/null
+++ b/ci/docker-compose.yml
@@ -0,0 +1,6 @@
+version: '3'
+services:
+ builder:
+ image: "kristall-ci:1.0"
+ volumes:
+ - ./output:/artifacts \ No newline at end of file