Skip to content

Commit

Permalink
Get FreeBSD binaries and run echo "Hello World!" when done.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Dec 24, 2024
1 parent b5ad759 commit 9c57a2b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bsd-user/scripts/ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,18 @@ RUN ${APT_UPDATE}
ARG CLANG_VER=19
ARG BUILD_PKGS="libelf-dev llvm-${CLANG_VER} clang-${CLANG_VER} python-is-python3 \
python3-pip python3-setuptools ninja-build pkg-config libglib2.0-dev git \
libbsd-dev"
libbsd-dev curl tar xz-utils"
WORKDIR /src
RUN --mount=type=bind,source=bsd-user/scripts/ci/pre-build.sh,target=pre-build.sh \
./pre-build.sh
RUN ${APT_INSTALL} ${BUILD_PKGS}
ARG TARGETPLATFORM
ARG BASE_IMAGE
RUN mkdir -p /tmp/world/bin
RUN --mount=type=bind,target=.,rw \
eval `./bsd-user/scripts/ci/get-arch-buildargs platformopts` && \
bsd-user/scripts/ci/build.sh
bsd-user/scripts/ci/build.sh && cp build_ci/qemu-x86_64 /tmp/world/bin
WORKDIR /tmp/world
RUN curl -L https://download.freebsd.org/releases/amd64/14.1-RELEASE/base.txz -o - | \
tar -C /tmp/world -xJvf -
RUN /tmp/world/bin/qemu-x86_64 -L /tmp/world /tmp/world/bin/echo "Hello World!"

0 comments on commit 9c57a2b

Please sign in to comment.