aux Develop inside docker
This commit is contained in:
@@ -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 && \
|
||||
@@ -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
3
aux/docker_build.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker build . -t git.kamkow1lair.pl/kamkow1/mop3/mop3-deploy:latest
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
|
||||
Reference in New Issue
Block a user