Skip to content

Commit

Permalink
added possibility to compile with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
frzifus committed Oct 20, 2018
1 parent 782106c commit 6e9f3b2
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docker/Dockerfile
Original file line number Original file line Diff line number Diff line change
@@ -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"]
32 changes: 32 additions & 0 deletions docker/build.sh
Original file line number Original file line Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions docker/nightly-entrypoint.sh
Original file line number Original file line Diff line number Diff line change
@@ -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.