mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
download cache
This commit is contained in:
parent
450cabe592
commit
dc31fc4309
5 changed files with 38 additions and 9 deletions
18
.github/workflows/iso.yml
vendored
18
.github/workflows/iso.yml
vendored
|
|
@ -14,6 +14,15 @@ jobs:
|
||||||
container:
|
container:
|
||||||
image: fedora:39
|
image: fedora:39
|
||||||
options: "--privileged"
|
options: "--privileged"
|
||||||
|
volumes:
|
||||||
|
- registry_cache:/registry_cache
|
||||||
|
services:
|
||||||
|
docker_registry:
|
||||||
|
image: docker.io/_/registry:2
|
||||||
|
ports:
|
||||||
|
- 5000:5000
|
||||||
|
volumes:
|
||||||
|
- registry_cache:/var/lib/registry
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|
@ -23,6 +32,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
dnf install -y \
|
dnf install -y \
|
||||||
lorax \
|
lorax \
|
||||||
|
podman \
|
||||||
git
|
git
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|
@ -30,6 +40,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Download container to cache
|
||||||
|
run: |
|
||||||
|
podman pull localhost:5000/ublue-os/base-main:39
|
||||||
|
|
||||||
|
- name: Show downloaded files
|
||||||
|
run: |
|
||||||
|
find /registry_cache
|
||||||
|
|
||||||
- name: Create boot.iso
|
- name: Create boot.iso
|
||||||
env:
|
env:
|
||||||
version: "39"
|
version: "39"
|
||||||
|
|
|
||||||
2
iso_files/kickstart.ks
Normal file
2
iso_files/kickstart.ks
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Set source image
|
||||||
|
ostreecontainer --url=ghcr.io/ublue-os/base-main:39
|
||||||
18
iso_files/registry/config.yml
Normal file
18
iso_files/registry/config.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
version: 0.1
|
||||||
|
log:
|
||||||
|
fields:
|
||||||
|
service: registry
|
||||||
|
storage:
|
||||||
|
filesystem:
|
||||||
|
rootdirectory: /var/lib/registry
|
||||||
|
http:
|
||||||
|
addr: :5000
|
||||||
|
headers:
|
||||||
|
X-Content-Type-Options: [nosniff]
|
||||||
|
health:
|
||||||
|
storagedriver:
|
||||||
|
enabled: true
|
||||||
|
interval: 10s
|
||||||
|
threshold: 3
|
||||||
|
proxy:
|
||||||
|
remoteurl: https://ghcr.io
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
%include submodules/fedora-kickstarts/fedora-disk-server.ks
|
|
||||||
|
|
||||||
%packages
|
|
||||||
-@arm-tools
|
|
||||||
podman
|
|
||||||
ostree
|
|
||||||
%end
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
# Install podman to host registry
|
|
||||||
installpkg podman
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue