Skip to content
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Apr 14, 2025. It is now read-only.
rocky-linux
/
devtools
Public archive
Notifications
You must be signed in to change notification settings
Fork
12
Star
24
Code
Issues
5
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
main
Breadcrumbs
devtools
/
Containerfile
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
85 lines (75 loc) · 1.8 KB
main
Breadcrumbs
devtools
/
Containerfile
Copy path
Top
File metadata and controls
Code
Blame
85 lines (75 loc) · 1.8 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
FROM golang:1.16 as srpmproc
ARG srpmproc_version=v0.3.9
ENV srpmproc_version=$srpmproc_version
RUN git clone https://github.com/rocky-linux/srpmproc /go/src/github.com/rocky-linux/srpmproc/
WORKDIR /go/src/github.com/rocky-linux/srpmproc/
RUN git checkout $srpmproc_version
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o srpmproc ./cmd/srpmproc
FROM docker.io/neilresf/scratch:minimal as dnf
RUN microdnf -y upgrade
RUN sed -i 's/enabled=0/enabled=1/g' /etc/yum.repos.d/Rocky-PowerTools.repo
RUN microdnf -y install epel-release
RUN microdnf -y install rpm-build mock createrepo git-core \
autoconf \
automake \
binutils \
bison \
flex \
gcc \
gcc-c++ \
gdb \
glibc-devel \
libtool \
make \
pkgconf \
pkgconf-m4 \
pkgconf-pkg-config \
redhat-rpm-config \
rpm-build \
rpm-sign \
strace \
asciidoc \
byacc \
ctags \
diffstat \
elfutils-libelf-devel \
git \
intltool \
jna \
ltrace \
patchutils \
perl-Fedora-VSP \
perl-Sys-Syslog \
perl-generators \
pesign \
source-highlight \
systemtap \
valgrind \
valgrind-devel \
cmake \
expect \
rpmdevtools \
rpmlint
FROM dnf as devtools
COPY etc_mock/rocky* /etc/mock/
COPY etc_mock/templates/* /etc/mock/templates/
COPY bin/* /usr/local/bin/
RUN chmod 0755 /usr/local/bin/rocky*
FROM devtools as base
COPY --from=srpmproc /go/src/github.com/rocky-linux/srpmproc/srpmproc /usr/local/bin/srpmproc
ARG user=root
RUN usermod -a -G mock $user
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
FROM base as prep
ARG PACKAGE
ENV PACKAGE=$PACKAGE
ARG BRANCH
ENV BRANCH=$BRANCH
#RUN env
#RUN /entrypoint.sh get
FROM prep
WORKDIR /root/rocky/
RUN for a in get prep build; do echo "alias $a=rocky$a" >> /root/.bashrc; done
ENTRYPOINT [ "/entrypoint.sh" ]
CMD ["prep", "build"]
You can’t perform that action at this time.