Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a dockerfile for building CI for redhat UBI #299

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
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
44 changes: 44 additions & 0 deletions swift-ci/master/redhat/ubi8/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
FROM redhat/ubi8

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

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-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