release image setup
-FROM debian:buster as installer
-COPY ./scripts/install.sh /install.sh
-RUN apt-get update \
- && apt-get install curl tar jq -y
-RUN chmod +x ./install.sh \
- && ./install.sh
-
+FROM debian as installer
+COPY ./installer/install-datafuse.sh /install.sh
+RUN apt update \
+ && apt install curl tar jq -y
+# hack ssl issue in curl
+RUN update-ca-certificates -f
+RUN chmod +x /install.sh
+RUN /install.sh
+# double check whether binaries could run on host architecture
+RUN timeout 3 /root/.datafuse/bin/fuse-query || true
+RUN timeout 3 /root/.datafuse/bin/fuse-store || true
FROM debian:buster
COPY --from=installer /root/.datafuse/bin/fuse-query /fuse-query
COPY --from=installer /root/.datafuse/bin/fuse-store /fuse-store
