From 47373829babc4a1e2296efe4c8ae0770cfd47211 Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Mon, 29 Jun 2020 17:14:18 +0200 Subject: Adds docker build files based on ubuntu 18.04. --- ci/Dockerfile | 13 +++++++++++++ ci/compile.sh | 13 +++++++++++++ ci/docker-compose.yml | 6 ++++++ 3 files changed, 32 insertions(+) create mode 100644 ci/Dockerfile create mode 100755 ci/compile.sh create mode 100644 ci/docker-compose.yml 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 -- cgit v1.2.3