How to build an ISO
Make sure you have your config/
directory available. For your first ISO build tests we recommend to use our sample from the following repo link. You can find further information about this config directory here
To build the iso yourself, you can choose between one of the following possibilities:
If you want to build the build container yourself link
Build iso
Docker plain
- Have a workdirectory with your
config/
adjusted for your client - Run
docker pull ghcr.io/projectpotos/potos-iso-builder:latest
to download the latest iso builder - Run
docker run -it -v $(pwd)/config:/config:Z -v $(pwd)/output:/output:Z ghcr.io/projectpotos/potos-iso-builder:latest
- Enjoy the iso in
output/
Docker compose
- Have a workdirectory with your
config/
adjusted for your client - Copy the
docker-compose.yml
file from here to that directory - Run
docker-compose pull && docker-compose up
in the main directory - Enjoy the iso in
output/
Github Workflow
- Create a new repo containing the
config
directory adjusted for your client - Create the following file as workflow file under
.github/workflows/isobuild.yml
name: Build Iso
on:
workflow_dispatch:
pull_request:
jobs:
build:
name: Build Iso
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/projectpotos/potos-iso-builder:latest
run: ./build-iso
options: -v ${{ github.workspace }}/config:/config:Z -v /output:/output:Z
- name: Save iso
uses: actions/upload-artifact@v3
with:
name: potos-iso
path: /output/*.iso
retention-days: 1
Build your own container image
If you want to build the build container image yourself, have a look at the potos-iso-builder
repo. All the container relevant files are in the container subdirectory and are described in the README