Skip to content

Commit

Permalink
move mirror setting to base image
Browse files Browse the repository at this point in the history
Signed-off-by: Daisuke Sato <daisukes@cmu.edu>
  • Loading branch information
daisukes committed Jun 14, 2024
1 parent 59aab1d commit 9b9eb1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ target "base" {
dockerfile-inline = <<EOF
FROM --platform=linux/amd64 ubuntu:jammy as build-amd64
FROM --platform=linux/arm64 nvcr.io/nvidia/l4t-base:r36.2.0 as build-arm64
RUN sed -i.bak -r 's!http://ports.ubuntu.com/ubuntu-ports/!https://mirror.kumi.systems/ubuntu-ports/!' /etc/apt/sources.list && \
cat /etc/apt/sources.list
FROM build-$TARGETARCH
EOF
platforms = "${PLATFORMS}"
Expand Down
2 changes: 0 additions & 2 deletions docker/humble-custom/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ ARG TARGETARCH

# downgrade libopencv-dev for ROS2
RUN if [ "$TARGETARCH" = "arm64" ]; then \
sed -i.bak -r 's!http://ports.ubuntu.com/ubuntu-ports/!https://mirror.kumi.systems/ubuntu-ports/!' /etc/apt/sources.list && \
cat /etc/apt/sources.list && \
apt update && apt install -q -y --no-install-recommends --allow-downgrades \
libopencv-dev=4.5.4+dfsg-9ubuntu4 \
&& \
Expand Down

0 comments on commit 9b9eb1d

Please sign in to comment.