Compare commits

..

3 Commits

Author SHA1 Message Date
xinclub
4cfdba9be2
Merge f1c1b3b69b38f47d7366d3a1fbed8e814de2036b into 846c48b4bd50a8ebf00cdb5cfd460a49115440e3 2023-10-10 21:41:51 +03:30
Teddysun
846c48b4bd
Update InstallNET.sh
Format shell script

Signed-off-by: Teddysun <i@teddysun.com>
2023-10-06 22:55:13 +09:00
Teddysun
ea46b3c584
Added Dockerfile.fedora39 2023-10-02 20:37:43 +09:00
2 changed files with 528 additions and 496 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,37 @@
# Dockerfile for build RPM packages.
# Copyright (C) 2023 Teddysun <i@teddysun.com>
FROM --platform=${TARGETPLATFORM} fedora:39
LABEL maintainer="Teddysun <i@teddysun.com>"
RUN dnf install -y yum-utils && \
dnf install -y tar wget git tree gcc gcc-c++ vim automake \
sudo net-tools make cmake zstd libzstd chkconfig libtool \
bash coreutils diffutils patch ca-certificates pcre-devel \
rpm-build rpm-devel rpmlint rpmdevtools ncurses which procps \
asciidoc audit-libs-devel binutils-devel flex jq gettext mbedtls-devel \
libcap-devel newt-devel pciutils-devel perl-generators c-ares-devel libev-devel \
python3 python3-devel python3-docutils rsync xmlto bc bison libsodium-devel \
java-devel ncurses-devel numactl-devel openssl-devel perl-devel \
bpftool dwarves gcc-plugin-devel glibc-static hmaccalc kernel-rpm-macros \
libbabeltrace-devel libbpf-devel libcap-ng-devel libnl3-devel libtraceevent-devel \
elfutils-devel xz-devel perl-ExtUtils-Embed && \
dnf clean all && rm -rf /var/cache/dnf /var/lib/rpm/__db*
RUN useradd builder -u 1000 -m -G users,wheel && \
echo "builder ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers && \
echo "# macros" > /home/builder/.rpmmacros && \
echo "%_topdir /home/builder/rpmbuild" >> /home/builder/.rpmmacros && \
echo "%_sourcedir %{_topdir}" >> /home/builder/.rpmmacros && \
echo "%_builddir %{_topdir}" >> /home/builder/.rpmmacros && \
echo "%_specdir %{_topdir}" >> /home/builder/.rpmmacros && \
echo "%_rpmdir %{_topdir}" >> /home/builder/.rpmmacros && \
echo "%_srcrpmdir %{_topdir}" >> /home/builder/.rpmmacros && \
echo "set enable-bracketed-paste off" >> /etc/inputrc && \
mkdir -p /home/builder/rpmbuild && \
chown -R builder /home/builder
USER builder
VOLUME /home/builder
WORKDIR /home/builder/rpmbuild
CMD ["/bin/bash"]