-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added possibility to compile with docker
- Loading branch information
Showing
3 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM ubuntu:18.04 | ||
|
||
MAINTAINER [email protected] | ||
|
||
RUN apt update \ | ||
; apt install -y \ | ||
qt5-qmake \ | ||
qt5-default \ | ||
qtwebengine5-dev \ | ||
libqt5webenginewidgets5 \ | ||
cmake \ | ||
g++ \ | ||
git | ||
|
||
COPY ./nightly-entrypoint.sh / | ||
|
||
ENTRYPOINT ["/nightly-entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | 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 |