You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
Dockerfile:9
--------------------
8 |
9 | >>> RUN apt-get update && \
10 | >>> DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common
11 | # Install dependencies.
--------------------
ERROR: failed to solve: process "/dev/.buildkit_qemu_emulator /bin/sh -c apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common" did not complete successfully: exit code: 100
FROM ubuntu:22.04
# The root path under which contains all the dependencies to build this Dockerfile.ARG DOCKER_BUILD_ROOT=.
ENV LANG en_US.utf8
WORKDIR /greptimedb
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt install -y software-properties-common
# Install dependencies.RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
libssl-dev \
tzdata \
curl \
unzip \
ca-certificates \
git \
build-essential \
pkg-config
ARG TARGETPLATFORM
RUN echo "target platform: $TARGETPLATFORM"ARG PROTOBUF_VERSION=29.3
# Install protobuf, because the one in the apt is too old (v3.12).RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-linux-aarch_64.zip && \
unzip protoc-${PROTOBUF_VERSION}-linux-aarch_64.zip -d protoc3; \
elif [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-linux-x86_64.zip && \
unzip protoc-${PROTOBUF_VERSION}-linux-x86_64.zip -d protoc3; \
fi
RUN mv protoc3/bin/* /usr/local/bin/
RUN mv protoc3/include/* /usr/local/include/
# Silence all `safe.directory` warnings, to avoid the "detect dubious repository" error when building with submodules.# Disabling the safe directory check here won't pose extra security issues, because in our usage for this dev build# image, we use it solely on our own environment (that github action's VM, or ECS created dynamically by ourselves),# and the repositories are pulled from trusted sources (still us, of course). Doing so does not violate the intention# of the Git's addition to the "safe.directory" at the first place (see the commit message here:# https://github.com/git/git/commit/8959555cee7ec045958f9b6dd62e541affb7e7d9).# There's also another solution to this, that we add the desired submodules to the safe directory, instead of using# wildcard here. However, that requires the git's config files and the submodules all owned by the very same user.# It's troublesome to do this since the dev build runs in Docker, which is under user "root"; while outside the Docker,# it can be a different user that have prepared the submodules.RUN git config --global --add safe.directory '*'# Install Rust.SHELL ["/bin/bash", "-c"]
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path --default-toolchain none -y
ENV PATH /root/.cargo/bin/:$PATH
# Install Rust toolchains.ARG RUST_TOOLCHAIN
RUN rustup toolchain install ${RUST_TOOLCHAIN}
# Install cargo-binstall with a specific version to adapt the current rust toolchain.# Note: if we use the latest version, we may encounter the following `use of unstable library feature 'io_error_downcast'` error.# compile from source take too long, so we use the precompiled binary insteadCOPY $DOCKER_BUILD_ROOT/docker/dev-builder/binstall/pull_binstall.sh /usr/local/bin/pull_binstall.sh
RUN chmod +x /usr/local/bin/pull_binstall.sh && /usr/local/bin/pull_binstall.sh
# Install nextest.RUN cargo binstall cargo-nextest --no-confirm
Build logs
Additional info
uname -a
Linux debug-amd64 6.8.0-1024-gcp #26~22.04.1-Ubuntu SMP Thu Feb 6 19:17:51 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Google Compute Engine Machine configuration:
The text was updated successfully, but these errors were encountered:
Contributing guidelines
I've found a bug and checked that ...
Description
An error occurred when using ubuntu 22.04 amd64 machine building arm64 image:
Seems
software-properties-common
install failed?Expected behaviour
Successfully built arm64 image.
Actual behaviour
Building from a Dockerfile:
build error in:
apt-get install -y software-properties-common
dockerfile: https://github.com/GreptimeTeam/greptimedb/blob/main/docker/dev-builder/ubuntu/Dockerfile
but modify
--platform
tolinux/amd64
is successful:amd64 platform build logs:
Buildx version
github.com/docker/buildx v0.16.1 34c195271a3f6dc64814db71438dc50dd41d7e3e
Docker info
Builders list
Configuration
Build logs
Additional info
uname -a
Google Compute Engine Machine configuration:
The text was updated successfully, but these errors were encountered: