Skip to content

Commit deb0aba

Browse files
committed
Add mimic-cross introduced base image
1 parent be6b93a commit deb0aba

File tree

5 files changed

+55
-15
lines changed

5 files changed

+55
-15
lines changed

.github/workflows/build-image.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@ jobs:
2929
uses: docker/setup-buildx-action@v3
3030

3131
- name: Build and push
32-
id: docker_build
33-
uses: docker/build-push-action@v5
32+
uses: docker/bake-action@v4
3433
with:
35-
context: ./buildroot
3634
push: true
37-
builder: ${{ steps.buildx.outputs.name }}
38-
tags: ${{ env.IMAGE }}
39-
platforms: linux/amd64,linux/arm64
35+
workdir: buildroot

buildroot/Dockerfile

Lines changed: 0 additions & 9 deletions
This file was deleted.

buildroot/Dockerfile.amd64

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ARG ROS_DISTRO=humble
2+
3+
FROM docker.io/hakuturu583/cuda_ros:humble-cuda-12.2.0-devel as build_stage
4+
5+
ENV DEBIAN_FRONTEND=noninteractive
6+
7+
RUN apt-get update && \
8+
apt-get install -y \
9+
python3-vcstool git python3-colcon-common-extensions python3-rosdep \
10+
python3-bloom fakeroot \
11+
debhelper git gpg dh-python reprepro \
12+
&& apt-get clean \
13+
&& rm -rf /var/lib/apt/lists/*
14+
15+
ENTRYPOINT [ "/bin/bash" ]

buildroot/Dockerfile.arm64

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
ARG ROS_DISTRO=humble
2+
3+
FROM --platform=${BUILDPLATFORM} impactaky/mc-ubuntu22.04-${TARGETARCH}-host:2.0.0 AS mimic-host
4+
FROM docker.io/hakuturu583/cuda_ros:lt4-humble-cuda-12.2.2-devel as build_stage
5+
6+
ENV DEBIAN_FRONTEND=noninteractive
7+
ENV DENO_NO_UPDATE_CHECK=1
8+
9+
RUN apt-get update && \
10+
apt-get install -y \
11+
python3-vcstool git python3-colcon-common-extensions python3-rosdep \
12+
python3-bloom fakeroot \
13+
debhelper git gpg dh-python reprepro \
14+
&& apt-get clean \
15+
&& rm -rf /var/lib/apt/lists/*
16+
17+
COPY --from=mimic-host / /mimic-cross
18+
RUN /mimic-cross/mimic-cross.deno/setup.sh
19+
20+
ENTRYPOINT [ "/bin/bash" ]

buildroot/docker-bake.hcl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
group "default" {
2+
targets = ["amd64", "aarch64"]
3+
}
4+
5+
6+
target "amd64" {
7+
target = "build_stage"
8+
dockerfile = "Dockerfile.amd64"
9+
platforms = ["linux/amd64"]
10+
tags = ["ghcr.io/fortefibre/buildroot:humble-amd64"]
11+
}
12+
13+
target "aarch64" {
14+
target = "build_stage"
15+
dockerfile = "Dockerfile.arm64"
16+
platforms = ["linux/arm64"]
17+
tags = ["ghcr.io/fortefibre/buildroot:humble-aarch64"]
18+
}

0 commit comments

Comments
 (0)