Closed rICTx-T1D closed 1 year ago
The resulting file should be copied to a user accessable folder. You can also write the commands more effectively like this:
RUN echo $'#!/usr/bin/env sh
cd /g7/
rm *.apk
wget --user-agent='Mozilla/5.0' -O Dexcom_G7.apk https://d.apkpure.com/b/APK/com.dexcom.g7?version=latest
java -version
/usr/src/dexcom-g7-apk-patcher/bin/build.sh /g7/Dexcom_G7.apk
mv /g7/dexcom.patched.apk /g7/Dexcom_G7_patched.apk
chmod -R 666 /g7/* && ls -al /g7/' > /usr/src/script.sh
RUN chmod 777 /usr/src/script.sh
RUN apt-get update && apt-get install --assume-yes git
@mxsrm Hi, the lines are needed, so only git, java and patcher are in image and all other will be loaded at run the container. So you can run multiple times with same image and newer version after dexcom has updated it.
Hey @mxsrm,
Thank you for your suggestions.
@rICTx-T1D to be honest we do not now if the patches will still working with newer versions of the stock g7 app. I just try to add the cloning of the repo also to the entry point to exclude it from the image because I like the idea of operating on the most recent patcher version but this didn't not work.
Maybe you have an idea also how to make it work?
Can we named the out-file "Dexcom_G7_patched.apk"??? its better for understanding, in my opinion. The modified docker-file and docker-build.sh works fine. please set 666 to output, so none privileged user can copy and remove it.
Hi @rICTx-T1D,
What do you think about this PR. Do we still need it?
see https://github.com/DiaKEM/dexcom-g7-apk-patcher/issues/21