mkdir -p ~/.docker/cli-plugins
cd ~/.docker/cli-plugins
Download binary file with corresponding CPU's architecture in this link to directory ~/.docker/cli-plugins.
Rename binary file to docker-buildx.
Check install successfull or not: docker buildx
Examples:
wget https://github.com/docker/buildx/releases/download/v0.9.0-rc2/buildx-v0.9.0-rc2.linux-amd64 -O ~/.docker/cli-plugins/docker-buildx
chmod +x ~/.docker/cli-plugins/docker-buildx
wget https://github.com/docker/buildx/releases/download/v0.9.0-rc2/buildx-v0.9.0-rc2.linux-arm64 -O ~/.docker/cli-plugins/docker-buildx
chmod +x ~/.docker/cli-plugins/docker-buildx
wget https://github.com/docker/buildx/releases/download/v0.9.0-rc2/buildx-v0.9.0-rc2.linux-arm-v7 -O ~/.docker/cli-plugins/docker-buildx
chmod +x ~/.docker/cli-plugins/docker-buildx
docker buildx build --platform linux/amd64 --no-cache -t hienanh/pybind11:v2.0-amd64 --build-arg NUM_JOBS=$(nproc) --push . -f Dockerfile
docker buildx build --platform linux/arm64 --no-cache -t hienanh/pybind11:v2.0-arm64 --build-arg NUM_JOBS=$(nproc) --push . -f Dockerfile
docker buildx build --platform linux/arm/v7 --no-cache -t hienanh/pybind11:v2.0-armv7 --build-arg NUM_JOBS=$(nproc) --push . -f Dockerfile
docker pull hienanh/pybind11:v2.0-amd64
docker pull hienanh/pybind11:v2.0-arm64
docker pull hienanh/pybind11:v2.0-armv7
docker manifest create hienanh/pybind11:v2.0 \
--amend hienanh/pybind11:v2.0-amd64 \
--amend hienanh/pybind11:v2.0-arm64 \
--amend hienanh/pybind11:v2.0-armv7
docker manifest push hienanh/pybind11:v2.0
docker run -it --rm -d --name pybind11 -v $(pwd):/root/pybind11 hienanh/pybind11:v2.0
FROM hienanh/boost-env:v2.0
ENV DEBIAN_FRONTEND noninteractive
# Install necessary library
RUN apt update && apt upgrade -y && \
apt install --assume-yes software-properties-common && add-apt-repository ppa:deadsnakes/ppa && \
apt install --assume-yes git tmux tree wget unzip htop cmake unzip nano g++ python-dev vim python3-pip && \
python3 -m pip install pytest numpy
# Pybind11
RUN cd /root && \
git clone https://github.com/pybind/pybind11.git && \
mkdir pybind11/build && cd /root/pybind11/build && \
cmake .. && make check -j$(nproc) && make install && \
cd /root && rm -rf pybind11
Content type
Image
Digest
sha256:afda6c764…
Size
403.9 MB
Last updated
over 3 years ago
docker pull hienanh/pybind11:v2.0