Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions swift-ci/master/redhat/ubi8/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
FROM redhat/ubi8

RUN groupadd -g 42 build-user && \
useradd -m -r -u 42 -g build-user build-user

#RUN subscription-manager repos --enable codeready-builder-for-rhel-8-$(arch)-rpms
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

# Update and install needed build packages
RUN yum -y install \
autoconf \
autoconf \
clang \
diffutils \
git \
glibc-static \
libbsd-devel \
libcurl-devel \
libedit-devel \
libicu-devel \
libstdc++-static \
libtool \
libuuid-devel \
libxml2-devel \
make \
ncurses-devel \
pcre-devel \
platform-python-devel \
python2 \
python2-devel \
python2-six \
python3 \
# python3-pexpect \
python3-six \
rsync \
sqlite-devel \
swig \
tar \
which

RUN alternatives --install /usr/bin/pip pip /usr/bin/pip2 1
RUN alternatives --set python /usr/bin/python2

USER build-user

WORKDIR /home/build-user