This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4036 from robaerd/docker-images
Docker images and packaging for CentOS and openSUSE
- Loading branch information
Showing
12 changed files
with
465 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
FROM quay.io/centos/centos:stream8 | ||
|
||
# Enable PowerTools repo | ||
RUN dnf config-manager --set-enabled powertools | ||
# Enable EPEL repo | ||
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm | ||
|
||
RUN dnf upgrade --refresh -y && dnf install -y \ | ||
augeas-devel \ | ||
bison \ | ||
bison-devel \ | ||
cmake \ | ||
curl \ | ||
dbus-devel \ | ||
diffutils \ | ||
dnf-plugins-core \ | ||
file \ | ||
findutils \ | ||
flex \ | ||
flex-devel \ | ||
gcc-c++ \ | ||
ghostscript \ | ||
git \ | ||
glib2 \ | ||
gpgme-devel \ | ||
graphviz \ | ||
java-11-openjdk-devel \ | ||
jna \ | ||
libasan \ | ||
libcurl-devel \ | ||
libdrm-devel \ | ||
libev-devel \ | ||
libgcrypt-devel \ | ||
libgit2-devel \ | ||
libmarkdown-devel \ | ||
libubsan \ | ||
libuv-devel \ | ||
libxml2-devel \ | ||
llvm \ | ||
lua-devel \ | ||
make \ | ||
ninja-build \ | ||
openssl-devel \ | ||
procps-ng \ | ||
python3-devel \ | ||
qt5-qtbase-devel \ | ||
qt5-qtdeclarative-devel \ | ||
qt5-qtsvg-devel \ | ||
rpmdevtools \ | ||
rpm-build \ | ||
ruby-devel \ | ||
rubygem-test-unit \ | ||
strace \ | ||
swig \ | ||
systemd-devel \ | ||
unzip \ | ||
valgrind \ | ||
wget \ | ||
which \ | ||
xerces-c-devel \ | ||
yajl-devel \ | ||
yaml-cpp-devel \ | ||
zeromq-devel \ | ||
zlib-devel \ | ||
python3-pip \ | ||
&& dnf debuginfo-install -y \ | ||
bison \ | ||
flex \ | ||
glib2 \ | ||
glibc \ | ||
gpgme \ | ||
libgcrypt \ | ||
ruby-libs \ | ||
&& dnf clean all -y | ||
|
||
# Build dependency for libelektra-fuse | ||
RUN pip3 install wheel | ||
|
||
# Google Test | ||
ENV GTEST_ROOT=/opt/gtest | ||
ARG GTEST_VER=release-1.11.0 | ||
RUN mkdir -p ${GTEST_ROOT} \ | ||
&& cd /tmp \ | ||
&& curl -o gtest.tar.gz \ | ||
-L https://github.com/google/googletest/archive/${GTEST_VER}.tar.gz \ | ||
&& tar -zxvf gtest.tar.gz --strip-components=1 -C ${GTEST_ROOT} \ | ||
&& rm gtest.tar.gz | ||
|
||
# Create User:Group | ||
# The id is important as jenkins docker agents use the same id that is running | ||
# on the slaves to execute containers | ||
ARG JENKINS_GROUPID | ||
RUN groupadd \ | ||
-g ${JENKINS_GROUPID} \ | ||
-f \ | ||
jenkins | ||
|
||
ARG JENKINS_USERID | ||
RUN useradd \ | ||
--create-home \ | ||
--uid ${JENKINS_USERID} \ | ||
--gid ${JENKINS_GROUPID} \ | ||
--shell "/bin/bash" \ | ||
jenkins | ||
|
||
# download and install gradle | ||
RUN cd /tmp && wget https://services.gradle.org/distributions/gradle-7.2-bin.zip && unzip gradle-7.2-bin.zip && rm gradle-7.2-bin.zip && mv gradle-7.2 /opt/gradle | ||
ENV PATH "${PATH}:/opt/gradle/bin" | ||
ENV JAVA_HOME=/etc/alternatives/jre | ||
RUN alternatives --auto java && alternatives --auto javac | ||
|
||
USER ${JENKINS_USERID} | ||
|
||
# extend PATH for user jenkins to include gradle | ||
RUN echo "export PATH=${PATH}:/opt/gradle/bin" >> /home/jenkins/.bashrc | ||
|
||
# Set git config | ||
RUN git config --global user.email 'Jenkins <[email protected]>' \ | ||
&& git config --global user.name 'Jenkins' |
Oops, something went wrong.