Compare commits
No commits in common. "56de02eb9499d4a8d99852bbf152d5b0e9da3af6" and "a14388a6e9555c196a83f68f963d0de443c1a6bd" have entirely different histories.
56de02eb94
...
a14388a6e9
@ -1 +0,0 @@
|
|||||||
1
|
|
||||||
@ -1,18 +0,0 @@
|
|||||||
FROM git.unkin.net/unkin/almalinux9-rpmbuilder:latest
|
|
||||||
|
|
||||||
# Create output directory for RPMs
|
|
||||||
RUN mkdir -p /app/dist
|
|
||||||
|
|
||||||
# Set working directory
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
ARG PACKAGE_RELEASE
|
|
||||||
ENV PACKAGE_RELEASE=${PACKAGE_RELEASE}
|
|
||||||
ARG PACKAGE_VERSION
|
|
||||||
ENV PACKAGE_VERSION=${PACKAGE_VERSION}
|
|
||||||
|
|
||||||
# Copy nfpm.yaml from the context into the container
|
|
||||||
COPY resources /app/resources
|
|
||||||
|
|
||||||
# Default command to build RPMs
|
|
||||||
CMD /app/resources/build.sh
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
#!/usr/bin/bash
|
|
||||||
# clone the repo
|
|
||||||
git clone https://github.com/ipxe/ipxe.git
|
|
||||||
|
|
||||||
# change into it
|
|
||||||
cd ipxe/src
|
|
||||||
|
|
||||||
# copy the main.pxi to embed
|
|
||||||
cp /app/resources/main.ipxe ./
|
|
||||||
|
|
||||||
# build images
|
|
||||||
make bin/undionly.kpxe EMBED=main.ipxe
|
|
||||||
make bin-x86_64-efi/ipxe.efi EMBED=main.ipxe
|
|
||||||
|
|
||||||
# copy to /app
|
|
||||||
cp bin/undionly.kpxe /app/
|
|
||||||
cp bin-x86_64-efi/ipxe.efi /app/
|
|
||||||
|
|
||||||
# build rpm
|
|
||||||
nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
#!ipxe
|
|
||||||
chain tftp://198.18.19.19/main.ipxe
|
|
||||||
@ -1,44 +0,0 @@
|
|||||||
# nfpm.yaml
|
|
||||||
|
|
||||||
name: unkin-undionly-kpxe
|
|
||||||
version: ${PACKAGE_VERSION}
|
|
||||||
release: ${PACKAGE_RELEASE}
|
|
||||||
arch: amd64
|
|
||||||
platform: linux
|
|
||||||
section: default
|
|
||||||
priority: extra
|
|
||||||
description: "iPXE network bootloader"
|
|
||||||
maintainer: iPXE
|
|
||||||
homepage: https://github.com/ipxe/ipxe
|
|
||||||
license: GPL-2.0 license
|
|
||||||
|
|
||||||
disable_globbing: false
|
|
||||||
|
|
||||||
replaces:
|
|
||||||
- unkin-undionly-kpxe
|
|
||||||
|
|
||||||
provides:
|
|
||||||
- undionly.kpxe
|
|
||||||
- ipxe.efi
|
|
||||||
|
|
||||||
# Files to include in the package
|
|
||||||
contents:
|
|
||||||
- src: /app/ipxe.efi
|
|
||||||
dst: /var/lib/tftpboot/ipxe.efi
|
|
||||||
file_info:
|
|
||||||
mode: 0644
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
- src: /app/undionly.kpxe
|
|
||||||
dst: /var/lib/tftpboot/undionly.kpxe
|
|
||||||
file_info:
|
|
||||||
mode: 0644
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
|
|
||||||
# Scripts to run during installation/removal (optional)
|
|
||||||
scripts:
|
|
||||||
preinstall: /app/resources/preinstall.sh
|
|
||||||
# postinstall: ./scripts/postinstall.sh
|
|
||||||
# preremove: ./scripts/preremove.sh
|
|
||||||
# postremove: ./scripts/postremove.sh
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
#!/usr/bin/bash
|
|
||||||
mkdir -p /var/lib/tftpboot
|
|
||||||
Loading…
Reference in New Issue
Block a user