From 9b60dd8c1432981a9e9ff9d32c30a4d5b484ced8 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Sun, 13 Aug 2023 12:43:04 +0800 Subject: [PATCH] Containerfile: initial work for containerized building one step forward to finally hook ceph cmake onto gradle? maybe we still want to ship prebuilts on a build variant for faster development? idk or, can we eventually hook every dependencies and stop using aur contents, which make containerization not really that desired? --- Containerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Containerfile diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..f258374 --- /dev/null +++ b/Containerfile @@ -0,0 +1,10 @@ +FROM archlinux + +RUN printf '[aurbuild]\nServer = https://aurbuild.xdavidwu.link\n' >> /etc/pacman.conf +RUN curl 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xf73f137d4573defaa097dbf09544cff6b08a3fd3' | pacman-key -a - && pacman-key --init && pacman-key --lsign-key f73f137d4573defaa097dbf09544cff6b08a3fd3 && pacman -Syu --noconfirm && pacman -S --noconfirm jdk17-openjdk android-sdk-cmdline-tools-latest android-platform-33 android-sdk-build-tools-33 && mkdir /build + +WORKDIR /build + +# XXX: use /etc/profile.d/*.sh instead? +ENV ANDROID_HOME=/opt/android-sdk +ENV ANDROID_SDK_ROOT=/opt/android-sdk -- 2.43.0