-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContainerfile
27 lines (23 loc) · 1.03 KB
/
Containerfile
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
FROM fedora:40
RUN dnf install -y \
krb5-workstation git man vim which chkconfig java-headless cargo packit \
python3-pip python3-devel python3-setuptools \
python3-poetry python3-rich python3-pyyaml \
&& curl -L -o /etc/pki/ca-trust/source/anchors/RH-IT-Root-CA.crt https://certs.corp.redhat.com/certs/2015-IT-Root-CA.pem \
&& curl -L -o /etc/pki/ca-trust/source/anchors/2022-IT-Root-CA.pem https://certs.corp.redhat.com/certs/2022-IT-Root-CA.pem \
&& update-ca-trust \
&& curl -L -o /etc/yum.repos.d/rcm-tools-fedora.repo https://download.devel.redhat.com/rel-eng/RCMTOOLS/rcm-tools-fedora.repo \
&& dnf install -y rhpkg brewkoji \
&& rm -f /etc/yum.repos.d/rcm-tools-fedora.repo \
&& dnf clean all
COPY configs/krb5.conf /etc/krb5.conf
COPY scripts/helper.sh /helper.sh
COPY discobuilder /discobuilder
RUN chmod 555 /helper.sh
RUN mkdir -p /repos
RUN useradd -ms /bin/bash builder
RUN chown builder /repos
USER builder
COPY configs/gitconfig /home/builder/.gitconfig
RUN rpmdev-setuptree
ENTRYPOINT /helper.sh