-
Notifications
You must be signed in to change notification settings - Fork 25
/
Dockerfile
78 lines (69 loc) · 2.58 KB
/
Dockerfile
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
FROM registry.access.redhat.com/ubi9/ubi
ENV TERM=xterm \
APPLIANCE=true \
RAILS_USE_MEMORY_STORE=true
# Force the sticky bit on /tmp - https://bugzilla.redhat.com/show_bug.cgi?id=2138434
RUN chmod +t /tmp
RUN ARCH=$(uname -m) && \
if [ ${ARCH} != "s390x" ] ; then dnf -y remove *subscription-manager*; fi && \
dnf -y update && \
dnf -y --setopt=protected_packages= remove redhat-release && \
dnf -y install --releasever 9 \
http://mirror.stream.centos.org/9-stream/BaseOS/${ARCH}/os/Packages/centos-stream-release-9.0-24.el9.noarch.rpm \
http://mirror.stream.centos.org/9-stream/BaseOS/${ARCH}/os/Packages/centos-stream-repos-9.0-24.el9.noarch.rpm \
http://mirror.stream.centos.org/9-stream/BaseOS/${ARCH}/os/Packages/centos-gpg-keys-9.0-24.el9.noarch.rpm && \
dnf -y install \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \
https://rpm.manageiq.org/release/19-spassky/el9/noarch/manageiq-release-19.0-1.el9.noarch.rpm && \
dnf -y --disablerepo=ubi-9-baseos-rpms swap openssl-fips-provider openssl-libs && \
dnf -y update && \
dnf -y module enable ruby:3.1 && \
dnf -y module enable nodejs:18 && \
dnf -y group install "development tools" && \
dnf config-manager --setopt=tsflags=nodocs --save && \
dnf -y install \
cmake \
copr-cli \
createrepo \
glibc-langpack-en \
libcurl-devel \
libpq-devel \
librdkafka \
libssh2-devel \
libxml2-devel \
libxslt-devel \
nodejs \
openssl-devel \
platform-python-devel \
postgresql-server \
qpid-proton-c-devel \
ruby-devel \
wget \
# For seeding ansible runner with ansible-galaxy, and for ansible-venv
ansible \
# For ansible-venv
cargo \
gcc \
krb5-devel \
libcurl-devel \
libffi-devel \
libxml2-devel \
libxslt-devel \
make \
openssl-devel \
python3-devel \
python3-pip \
python3-virtualenv \
rpm-build && \
dnf -y update libarchive && \
dnf clean all && \
rm -rf /var/cache/dnf
RUN npm install yarn -g
RUN echo "gem: --no-ri --no-rdoc --no-document" > /root/.gemrc
COPY . /build_scripts
RUN curl -o /usr/lib/rpm/brp-strip https://raw.githubusercontent.com/rpm-software-management/rpm/rpm-4.19.1-release/scripts/brp-strip && \
chmod +x /usr/lib/rpm/brp-strip && \
cd /usr/lib/rpm/ && \
patch -p2 < /build_scripts/container-assets/Add-js-rb-filtering-on-top-of-4.19.1.patch
RUN gem install bundler
ENTRYPOINT ["/build_scripts/container-assets/user-entrypoint.sh"]