Skip to content
Permalink
Browse files

added possibility to compile with docker

  • Loading branch information...
frzifus committed Oct 20, 2018
1 parent 782106c commit 6e9f3b2a351e4538de7d41857287a9d2eeeeead0
Showing with 61 additions and 0 deletions.
  1. +17 −0 docker/Dockerfile
  2. +32 −0 docker/build.sh
  3. +12 −0 docker/nightly-entrypoint.sh
@@ -0,0 +1,17 @@
FROM ubuntu:18.04

MAINTAINER bongartz@klimlive.de

RUN apt update \
; apt install -y \
qt5-qmake \
qt5-default \
qtwebengine5-dev \
libqt5webenginewidgets5 \
cmake \
g++ \
git

COPY ./nightly-entrypoint.sh /

ENTRYPOINT ["/nightly-entrypoint.sh"]
@@ -0,0 +1,32 @@
#!/bin/bash

build_dir=${PWD}/release

image=redasm-nightly
nightly=redasm_nightly

imageService() {
docker build -t ${image} .
}

nightlyService() {
mkdir -p ${build_dir}
docker run --rm -v ${build_dir}:/deploy --name ${nightly} ${image} .
}

rmService() {
docker rmi ${image}
}

case "$1" in
image) imageService ;;
nightly) nightlyService ;;
rm) rmService ;;
*) echo "usage: $0"
echo " image: builds docker image"
echo " stable: currently not implemented"
echo " nightly: runs a container to build a redasm as nightly version"
echo " rm: removes docker image"
exit 1
;;
esac
@@ -0,0 +1,12 @@
#!/bin/bash

git clone --branch=master https://github.com/REDasmOrg/REDasm.git /redasm
# git checkout -qf $VERSION
pushd redasm
git submodule update --init --recursive
mkdir -p build
pushd build
qmake CONFIG+=release ..
make
cp REDasm /deploy
popd

0 comments on commit 6e9f3b2

Please sign in to comment.
You can’t perform that action at this time.