mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
more fixes
This commit is contained in:
parent
37ce02c57e
commit
926b72135b
3 changed files with 36 additions and 21 deletions
|
|
@ -6,7 +6,7 @@ To use the container file, run `podman run --privileged --volume .:/build-contai
|
||||||
|
|
||||||
This will create an ISO with the baked in defaults of the container image. The resulting file will be called `deploy.iso`
|
This will create an ISO with the baked in defaults of the container image. The resulting file will be called `deploy.iso`
|
||||||
|
|
||||||
See [Customizing](#customizing) for information about customizing the ISO that gets created. The variable can either be defined as environment variables. All variable should be specified CAPITALIZED.
|
See [Customizing](#customizing) for information about customizing the ISO that gets created. The variables can be defined as environment variables or command arguments. All variables should be specified CAPITALIZED.
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
Building an ISO to install Fedora 39
|
Building an ISO to install Fedora 39
|
||||||
|
|
|
||||||
|
|
@ -7,17 +7,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
|
||||||
|
|
@ -25,19 +26,21 @@ Privileged is required for access to loop devices for lorax.
|
||||||
```
|
```
|
||||||
|
|
||||||
## 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
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
- [Using a directory](#using-a-directory)
|
- [Using a directory](#using-a-directory)
|
||||||
|
|
||||||
## Directly using refs
|
## Directly using refs
|
||||||
|
|
||||||
Action:
|
Action:
|
||||||
Specify the following in your workflow:
|
Specify the following in your workflow:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Build ISO
|
- name: Build ISO
|
||||||
uses: jasonn3/build-container-installer@main
|
uses: jasonn3/build-container-installer@main
|
||||||
|
|
@ -15,8 +17,10 @@ Specify the following in your workflow:
|
||||||
flatpak_remote_url: https://flathub.org/repo/flathub.flatpakrepo
|
flatpak_remote_url: https://flathub.org/repo/flathub.flatpakrepo
|
||||||
flatpak_remote_refs: app/org.videolan.VLC/x86_64/stable runtime/org.kde.Platform/x86_64/5.15-23.08
|
flatpak_remote_refs: app/org.videolan.VLC/x86_64/stable runtime/org.kde.Platform/x86_64/5.15-23.08
|
||||||
```
|
```
|
||||||
|
|
||||||
Podman:
|
Podman:
|
||||||
Run the following command:
|
Run the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
podman run --privileged --volume ./:/github/workspace/ ghcr.io/jasonn3/build-container-installer:main \
|
podman run --privileged --volume ./:/github/workspace/ ghcr.io/jasonn3/build-container-installer:main \
|
||||||
FLATPAK_REMOTE_NAME=flathub \
|
FLATPAK_REMOTE_NAME=flathub \
|
||||||
|
|
@ -25,14 +29,18 @@ podman run --privileged --volume ./:/github/workspace/ ghcr.io/jasonn3/build-con
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
## Using a directory
|
## Using a directory
|
||||||
|
|
||||||
Action:
|
Action:
|
||||||
1. Create a directory within your GitHub repo named flatpak_refs
|
1. Create a directory within your GitHub repo named flatpak_refs
|
||||||
1. Create a file within flatpak_refs with the following content
|
1. Create a file within flatpak_refs with the following content
|
||||||
|
|
||||||
```
|
```
|
||||||
app/org.videolan.VLC/x86_64/stable
|
app/org.videolan.VLC/x86_64/stable
|
||||||
runtime/org.kde.Platform/x86_64/5.15-23.08
|
runtime/org.kde.Platform/x86_64/5.15-23.08
|
||||||
```
|
```
|
||||||
|
|
||||||
Specify the following in your workflow:
|
Specify the following in your workflow:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Build ISO
|
- name: Build ISO
|
||||||
uses: jasonn3/build-container-installer@main
|
uses: jasonn3/build-container-installer@main
|
||||||
|
|
@ -42,14 +50,18 @@ Specify the following in your workflow:
|
||||||
flatpak_remote_url: https://flathub.org/repo/flathub.flatpakrepo
|
flatpak_remote_url: https://flathub.org/repo/flathub.flatpakrepo
|
||||||
flatpak_remote_refs_dir: /github/workspace/flatpak_refs
|
flatpak_remote_refs_dir: /github/workspace/flatpak_refs
|
||||||
```
|
```
|
||||||
|
|
||||||
Podman:
|
Podman:
|
||||||
1. Create a directory named flatpak_refs
|
1. Create a directory named flatpak_refs
|
||||||
1. Create a file within flatpak_refs with the following content
|
1. Create a file within flatpak_refs with the following content
|
||||||
|
|
||||||
```
|
```
|
||||||
app/org.videolan.VLC/x86_64/stable
|
app/org.videolan.VLC/x86_64/stable
|
||||||
runtime/org.kde.Platform/x86_64/5.15-23.08
|
runtime/org.kde.Platform/x86_64/5.15-23.08
|
||||||
```
|
```
|
||||||
|
|
||||||
Run the following command:
|
Run the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
podman run --privileged --volume ./:/github/workspace/ ghcr.io/jasonn3/build-container-installer:main \
|
podman run --privileged --volume ./:/github/workspace/ ghcr.io/jasonn3/build-container-installer:main \
|
||||||
FLATPAK_REMOTE_NAME=flathub \
|
FLATPAK_REMOTE_NAME=flathub \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue