aux Develop inside docker
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 43s
Build documentation / build-and-deploy (push) Successful in 28s

This commit is contained in:
2026-04-03 21:21:46 +02:00
parent 342f39b748
commit ac5526de1c
6 changed files with 13 additions and 17 deletions

View File

@@ -1,6 +1,7 @@
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV NO_AT_BRIDGE=1
RUN apt-get update
@@ -15,7 +16,7 @@ RUN wget https://apt.llvm.org/llvm.sh -O /llvm.sh && chmod +x /llvm.sh && /ll
RUN wget https://deb.nodesource.com/setup_20.x -O /setup_node.sh && chmod +x /setup_node.sh && /setup_node.sh
RUN apt-get install -y make rsync clang-21 clang-tools-21 llvm-21 bear lld xorriso \
zip gnupg openssh-client nodejs git build-essential
zip gnupg openssh-client nodejs git build-essential qemu-system
RUN ln -sf /usr/bin/clang-21 /usr/bin/clang && \
ln -sf /usr/bin/clang-doc-21 /usr/bin/clang-doc && \

View File

@@ -1,14 +0,0 @@
FROM ubuntu:latest AS builder
RUN apt-get update && apt-get -y install clang llvm lld make xorriso
WORKDIR /usr/src/MOP3
COPY . .
ARG bt
RUN ./aux/devel.sh $bt
FROM scratch
COPY --from=builder /usr/src/MOP3/mop3.iso /mop3.iso

Binary file not shown.

3
aux/docker_build.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
docker build . -t git.kamkow1lair.pl/kamkow1/mop3/mop3-deploy:latest

View File

@@ -1,3 +1,9 @@
#!/bin/sh
docker build -f Dockerfile.localdev --progress=plain --build-arg bt="$1" --output . .
xhost +local:docker
docker run -it --rm -v $(pwd):/work -w /work \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
--device /dev/kvm \
git.kamkow1lair.pl/kamkow1/mop3/mop3-deploy:latest

View File

@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -x