Skip to content

Commit

Permalink
Build using docker
Browse files Browse the repository at this point in the history
  • Loading branch information
NDRAEY committed Apr 29, 2023
1 parent 95c2ca9 commit e644716
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
FROM debian:11

RUN apt-get update
RUN apt-get install git make clang-13 -y
RUN apt-get install git -y
RUN apt-get install make -y
RUN apt-get install clang-13 -y
RUN apt-get install g++ -y
RUN apt-get install grub-pc-bin -y
RUN apt-get install xorriso -y
RUN git clone https://github.com/NDRAEY/SayoriOS.git /SayoriOS --depth 1
RUN ln -s /usr/bin/clang-13 /usr/bin/cc

WORKDIR /SayoriOS

RUN make -j8
RUN make -j4 && make geniso

CMD ["cp", "kernel.iso", "/output/"]

Expand Down
4 changes: 4 additions & 0 deletions build_using_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

sudo docker build -t sayorios .
sudo docker run -v $PWD:/output sayorios

0 comments on commit e644716

Please sign in to comment.