Skip to content

Commit

Permalink
Merge pull request #2928 from abjdev/master
Browse files Browse the repository at this point in the history
Add Dockerfile so MacOS users can build
  • Loading branch information
zarlo authored Jan 30, 2024
2 parents 3bf9c0d + 3d180ec commit b5f4590
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM ubuntu:latest

WORKDIR /Cosmos

RUN apt-get update
RUN apt-get install -y dotnet6 git make xorriso sudo yasm binutils

RUN git config --global pack.window 1

# Cloning Cosmos Repos
RUN git clone https://github.com/CosmosOS/Cosmos.git
RUN git clone https://github.com/CosmosOS/XSharp.git
RUN git clone https://github.com/CosmosOS/IL2CPU.git
RUN git clone https://github.com/CosmosOS/Common.git

# Run make
WORKDIR /Cosmos
RUN make -C Cosmos
18 changes: 17 additions & 1 deletion Docs/articles/Installation/DevKit.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,26 @@
* Xorriso (`apt install xorriso`)
* QEMU or any other virtual machine. See [Running](https://cosmosos.github.io/articles/Installation/Running.html) for more information.


### Installation
Run `make` to build Cosmos. Cosmos will clone all the required repos, build itself, and install it and it's nuget packages to the system automatically.

## MacOS (Apple Silicon/Intel)
There is currently hard to build on Apple Silicon Devices. So are going to build DevKit on Docker (Virtual Environment Service).

### Prerequisites

* Docker(`brew cask install docker`)
* QEMU or any other virtual machine. See [Running](https://cosmosos.github.io/articles/Installation/Running.html) for more information.


### Installation
First we need to set directory to the path of Cosmos source directory and build the Dockerfile:
```
cd /path/to/Cosmos/
docker build -t cosmos .
```
This will take a while. If there is no error, you successfully installed Cosmos on a Virtual Environment!

## notes / FAQ

### custom cosmos repos
Expand Down

0 comments on commit b5f4590

Please sign in to comment.