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:
|
||||
image: fedora:39
|
||||
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:
|
||||
contents: read
|
||||
packages: write
|
||||
|
|
@ -23,6 +32,7 @@ jobs:
|
|||
run: |
|
||||
dnf install -y \
|
||||
lorax \
|
||||
podman \
|
||||
git
|
||||
|
||||
- name: Checkout repository
|
||||
|
|
@ -30,6 +40,14 @@ jobs:
|
|||
with:
|
||||
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
|
||||
env:
|
||||
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