aboutsummaryrefslogtreecommitdiffhomepage
path: root/CorOS-dev-environment/README.md
diff options
context:
space:
mode:
authorJudah Fuller <[email protected]>2023-07-17 21:41:08 +0100
committerGitHub <[email protected]>2023-07-17 21:41:08 +0100
commitec982eee8817c2012cddb22820d0ab89af2731ec (patch)
treefe60a65ae0bdbe335779bd38c4bf60dfdfa15b8d /CorOS-dev-environment/README.md
parent8d904aec5f50e90243c89d9bc6ea7f62f795d881 (diff)
downloadOpenCortex-ec982eee8817c2012cddb22820d0ab89af2731ec.tar.gz
OpenCortex-ec982eee8817c2012cddb22820d0ab89af2731ec.zip
Add M1 Docker Docs
Diffstat (limited to 'CorOS-dev-environment/README.md')
-rw-r--r--CorOS-dev-environment/README.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/CorOS-dev-environment/README.md b/CorOS-dev-environment/README.md
index 1804152..2e1f55f 100644
--- a/CorOS-dev-environment/README.md
+++ b/CorOS-dev-environment/README.md
@@ -16,6 +16,8 @@ Once you've got the update file, you can put it inside the `filesystems` directo
**The easier** way is to use `docker compose`. In the `docker-compose.yaml` file, all volumes are already defined. This means you only have to define the update file in the `environment` section.
+**[Click here for ARM and M1](#Running-On-M1)**
+
To use this first run the service in detached mode. **Make sure to build the CorOS-emulation container first if you want to use the CorOS-build-env one!**
```
@@ -53,6 +55,29 @@ To link QT to the right fonts folder, run:
export QT_QWS_FONTDIR=/etc/fonts
```
+## Running On M1
+
+To build the dev enviroment on M1 *you must enable Rosseta x86 Emulation* (settings, in development, beta features).
+Then you have to pull, build and compose the container in serperate steps, adding the platform flag to each step.
+
+Pull the base image:
+
+```bash
+docker pull docker.io/library/ubuntu:18.04 --platform linux/amd64
+```
+
+Build the cortex-dev image:
+
+```bash
+sudo docker build . --platform=linux/amd64 -t cortex-dev
+```
+
+Compose the container:
+
+```bash
+sudo docker compose up -d
+```
+
## Creating an update package
You can create a custom update package based on the mounted filesystem, by running the `update-builder.sh` script. This can be found in the root of the docker container. This way you can patch your update to include all mods and ssh access, without opening the QC up everytime.