diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1f74b58 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM ubuntu:latest +RUN apt-get update && apt-get install -y git sudo +RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo +RUN sudo git clone https://github.com/thomaas/LibreLink-xDrip-Patch +WORKDIR /LibreLink-xDrip-Patch +RUN ./install-apt-dependencies.sh +RUN ./download.sh +RUN ./patch.sh \ No newline at end of file diff --git a/how-to-dockerfile b/how-to-dockerfile new file mode 100644 index 0000000..b2d9395 --- /dev/null +++ b/how-to-dockerfile @@ -0,0 +1,3 @@ + +docker build . -t libre +docker run -ti -v /Users/thomas/Desktop/Docker:/hostDir libre /bin/bash diff --git a/install-apt-dependencies.sh b/install-apt-dependencies.sh index d5d0b0b..cf2e868 100755 --- a/install-apt-dependencies.sh +++ b/install-apt-dependencies.sh @@ -11,7 +11,7 @@ WORKDIR=$(pwd) FILENAME='com.freestylelibre.app.de_2019-04-22' echo -e "${WHITE}Installiere benötigte Tools ...${NORMAL}" -sudo apt-get install git wget apksigner zipalign android-framework-res +sudo apt-get install -y git wget apksigner zipalign android-framework-res if [ $? = 0 ]; then echo -e "${GREEN} okay.${NORMAL}" echo