1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 10:57:55 +01:00
This commit is contained in:
Jason Nagin 2024-06-11 13:39:49 -04:00 committed by GitHub
parent 8382770fbd
commit 34376a485c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,6 +8,7 @@ This action is used to generate an ISO for installing an OSTree stored in a cont
## Usage ## Usage
This action is designed to be called from a GitHub workflow using the following format This action is designed to be called from a GitHub workflow using the following format
```yaml ```yaml
- name: Build ISO - name: Build ISO
uses: jasonn3/build-container-installer@main uses: jasonn3/build-container-installer@main
@ -103,11 +104,13 @@ See [Customizing](#customizing) for information about customizing the ISO that g
Examples: Examples:
Building an ISO to install Fedora 38 Building an ISO to install Fedora 38
```bash ```bash
docker run --rm --privileged --volume .:/build-container-installer/build ghcr.io/jasonn3/build-container-installer:latest VERSION=38 IMAGE_NAME=base IMAGE_TAG=38 VARIANT=Server docker run --rm --privileged --volume .:/build-container-installer/build ghcr.io/jasonn3/build-container-installer:latest VERSION=38 IMAGE_NAME=base IMAGE_TAG=38 VARIANT=Server
``` ```
Building an ISO to install Fedora 39 Building an ISO to install Fedora 39
```bash ```bash
docker run --rm --privileged --volume .:/build-container-installer/build ghcr.io/jasonn3/build-container-installer:latest VERSION=39 IMAGE_NAME=base IMAGE_TAG=39 VARIANT=Server docker run --rm --privileged --volume .:/build-container-installer/build ghcr.io/jasonn3/build-container-installer:latest VERSION=39 IMAGE_NAME=base IMAGE_TAG=39 VARIANT=Server
``` ```
@ -121,17 +124,18 @@ The code from VSCode will be available at `/workspaces/build-container-installer
Privileged is required for access to loop devices for lorax. Privileged is required for access to loop devices for lorax.
Use existing container image: Use existing container image:
```
```diff
{ {
"name": "Existing Dockerfile", "name": "Existing Image",
// "build": { - "build": {
// "context": "..", - "context": "..",
// "dockerfile": "../Containerfile", - "dockerfile": "../Containerfile",
// "args": { - "args": {
// "version": "39" - "version": "39"
// } - }
// }, - },
"image": "ghcr.io/jasonn3/build-container-installer:latest", + "image": "ghcr.io/jasonn3/build-container-installer:latest",
"overrideCommand": true, "overrideCommand": true,
"shutdownAction": "stopContainer", "shutdownAction": "stopContainer",
"privileged": true "privileged": true
@ -139,17 +143,18 @@ Use existing container image:
``` ```
Build a new container image: Build a new container image:
```
```diff
{ {
"name": "Existing Dockerfile", "name": "New Image",
"build": { + "build": {
"context": "..", + "context": "..",
"dockerfile": "../Containerfile", + "dockerfile": "../Containerfile",
"args": { + "args": {
"version": "39" + "version": "39"
} + }
}, + },
//"image": "ghcr.io/jasonn3/build-container-installer:latest", - "image": "ghcr.io/jasonn3/build-container-installer:latest",
"overrideCommand": true, "overrideCommand": true,
"shutdownAction": "stopContainer", "shutdownAction": "stopContainer",
"privileged": true "privileged": true
@ -164,4 +169,4 @@ Build a new container image:
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=jasonn3/build-container-installer&type=Date" /> <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=jasonn3/build-container-installer&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=jasonn3/build-container-installer&type=Date" /> <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=jasonn3/build-container-installer&type=Date" />
</picture> </picture>
</a> </a>