From 4b19ecf3c3b5b7a9c7b3a44cbb5199f1d117ed56 Mon Sep 17 00:00:00 2001 From: lukas Date: Mon, 8 Jun 2020 10:54:22 +0200 Subject: [PATCH] added dockerfiles and edited readme --- Docker/Linux/Dockerfile | 19 +++++++++++++++++++ Docker/Windows/Dockerfile | 20 ++++++++++++++++++++ README.md | 20 +++++++++++++++++++- 3 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 Docker/Linux/Dockerfile create mode 100644 Docker/Windows/Dockerfile diff --git a/Docker/Linux/Dockerfile b/Docker/Linux/Dockerfile new file mode 100644 index 0000000..00b37ec --- /dev/null +++ b/Docker/Linux/Dockerfile @@ -0,0 +1,19 @@ +FROM gcc:latest +MAINTAINER luki42 + +RUN \ + \ + # Install texlive + echo "instaling cmake" && \ + apt-get update && \ + apt-get install -y --no-install-recommends cmake libgtest-dev && \ + echo "installing build dependencies" && \ + apt-get install -y --no-install-recommends libcurl4-openssl-dev libconfig++-dev && \ + echo "installing packaging tools" && \ + apt-get install -y --no-install-recommends dpkg rpm && \ + # clean up + apt-get clean + +# Expose /home as workin dir +WORKDIR /home +VOLUME ["/home"] \ No newline at end of file diff --git a/Docker/Windows/Dockerfile b/Docker/Windows/Dockerfile new file mode 100644 index 0000000..c52d108 --- /dev/null +++ b/Docker/Windows/Dockerfile @@ -0,0 +1,20 @@ +FROM fedora:33 +MAINTAINER luki42 + +RUN \ + \ + # Install texlive + echo "instaling cmake" && \ + dnf install -y mingw64-gcc-c++ mingw64-curl-static mingw64-qt5-qtbase wget cmake make tar xz mingw32-nsis gtest gtest-devel && \ + wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-libconfig-1.7.2-1-any.pkg.tar.xz && \ + tar -xf mingw-w64-x86_64-libconfig-1.7.2-1-any.pkg.tar.xz && \ + mv ./mingw64/bin/* /usr/x86_64-w64-mingw32/sys-root/mingw/bin && \ + mv ./mingw64/include/* /usr/x86_64-w64-mingw32/sys-root/mingw/include && \ + mv ./mingw64/lib/*.a /usr/x86_64-w64-mingw32/sys-root/mingw/lib && \ + mv ./mingw64/lib/cmake/* /usr/x86_64-w64-mingw32/sys-root/mingw/lib/cmake && \ + rm -Rv mingw-w64-x86_64-libconfig-1.7.2-1-any.pkg.tar.xz mingw64 && \ + #cleanup + dnf clean dbcache && dnf clean packages +# Expose /home as workin dir +WORKDIR /home +VOLUME ["/home"] \ No newline at end of file diff --git a/README.md b/README.md index bf7f869..5642a69 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ # DynuIPRefresher A lightweight C++ application to setup a service for refreshing a dynamic IP to the Dynu servers. Dynu.com is a free DDns service and provides an API. +There is also a GUI for Windows Users and beginners. ## Installation Download the latest Release at [Release_Page](https://github.com/Lukas-Heiligenbrunner/DynuIPRefresher/releases). @@ -31,6 +32,17 @@ help page: [no argument] normal ip check and refresh ``` +### GUI + +You can also build the grapical user inteface if you want. +There you can manually trigger a refresh in a gui and set all the config parameters. + +Home Page: +![couldn't load image](https://i.ibb.co/syDwWQg/Screenshot-20200608-104253.png) + +Config Page: +![couldn't load image](https://i.ibb.co/89vnJXY/Screenshot-20200608-104308.png) + ## Build ## Basic Build @@ -85,6 +97,10 @@ cd into downloaded files and Generate makefiles: `make package` +### GUI Build + +please use the predefined Docker-Image here: +[DockerHub](https://hub.docker.com/repository/docker/luki42/dynuiprefresher_build) ### Windows cross build @@ -99,5 +115,7 @@ Optional dependencies * NSIS Pack tool (for creating installer) * doxygen (for generating html doc) -Some addition configuration of lib paths may be needed in CMakeList.txt. +The Simplest way to install all dependencies is the preconfigured Docker-Image: +[DockerHub](https://hub.docker.com/repository/docker/luki42/dynuiprefresher_build) + `make package` will pack it into a NSIS installer for Windows.