summaryrefslogtreecommitdiffhomepage
path: root/android/docker/Dockerfile
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2022-10-24 12:06:22 +0200
committerAlbin <albin@mullvad.net>2022-10-24 18:06:40 +0200
commitade7ece5a0494190b87aeebccfdb4840620dfc7d (patch)
treedb97d1aa0f94d9774d78630e811e7f767165c470 /android/docker/Dockerfile
parent4d9b04d9050fc5e687ba463db9d2fc54ee714415 (diff)
downloadmullvadvpn-ade7ece5a0494190b87aeebccfdb4840620dfc7d.tar.xz
mullvadvpn-ade7ece5a0494190b87aeebccfdb4840620dfc7d.zip
Improve go monotonic patch documentation
Diffstat (limited to 'android/docker/Dockerfile')
-rw-r--r--android/docker/Dockerfile7
1 files changed, 6 insertions, 1 deletions
diff --git a/android/docker/Dockerfile b/android/docker/Dockerfile
index 58a60980dd..8ecf7c4a87 100644
--- a/android/docker/Dockerfile
+++ b/android/docker/Dockerfile
@@ -13,6 +13,11 @@
# for more information.
# === Base image (built from: ../../Dockerfile) ===
+# NOTE: When bumping the base image, it's important to keep the go patch applied
+# in this image in sync with the go version used in the base image. An appropriate
+# patch for a given go version can be identified by checking the wireguard-android
+# repo: https://git.zx2c4.com/wireguard-android/tree/tunnel/tools/libwg-go.
+# It's also important to keep the go path in sync.
FROM ghcr.io/mullvad/mullvadvpn-app-build@sha256:b539c83c4336246fef1c324242b49b0fd35fb0839dffd2b9c9fc8361e629a40c
# === Metadata ===
@@ -83,7 +88,7 @@ RUN curl -sfLo /tmp/ndk.zip https://dl.google.com/android/repository/android-ndk
rm /tmp/ndk.zip
# Apply go patch required for Android
-# NOTE: The go path must match the one used in the base image.
+# See the comment above the FROM instruction for more information.
COPY goruntime-boottime-over-monotonic.diff /tmp/goruntime-boottime-over-monotonic.diff
RUN patch -p1 -f -N -r- -d /usr/local/go < /tmp/goruntime-boottime-over-monotonic.diff && \
rm /tmp/goruntime-boottime-over-monotonic.diff