Skip to content

Commit

Permalink
Merge pull request #10 from hongxu-jia/main
Browse files Browse the repository at this point in the history
assemble arm64 image in amd64 container
  • Loading branch information
zulcss authored Apr 1, 2024
2 parents 2f70f79 + 440181c commit bd0c5e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM debian:testing
# hadolint ignore=DL3008
RUN apt-get update && \
apt-get install -y --no-install-recommends \
arch-test \
mmdebstrap \
bubblewrap \
dosfstools \
Expand Down Expand Up @@ -32,8 +33,6 @@ RUN apt-get update && \
git && \
rm -rf /var/lib/apt/lists/*

RUN if [ "$(uname -m)" = "x86_64" ]; then apt update && apt install qemu-user-static arch-test -y; fi

COPY files/pip.conf /etc/pip.conf
RUN pip install omegaconf

Check failure on line 37 in docker/Dockerfile

View workflow job for this annotation

GitHub Actions / docker

DL3013 warning: Pin versions in pip. Instead of `pip install <package>` use `pip install <package>==<version>` or `pip install --requirement <requirements file>`

Check failure on line 37 in docker/Dockerfile

View workflow job for this annotation

GitHub Actions / docker

DL3042 warning: Avoid use of cache directory with pip. Use `pip install --no-cache-dir <package>`

Expand Down
4 changes: 4 additions & 0 deletions tools/build-container.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/bash

# qemu-binfmt with non-native chroot
sudo apt update
sudo apt install qemu-user-static -y

docker build -t ruck docker

0 comments on commit bd0c5e2

Please sign in to comment.