Skip to content

Commit

Permalink
build for rhel9
Browse files Browse the repository at this point in the history
  • Loading branch information
rigazilla committed Aug 8, 2022
1 parent 0c56e05 commit b9392f2
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
tags:
- "*"
jobs:
run-ci-tests:
run-ci-tests-stream-8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -22,6 +22,21 @@ jobs:
artifacts: "build/*.rpm,builddeb/*.deb"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
run-ci-tests-stream-9:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4
- run: echo $GITHUB_REF_NAME
- run: mkdir build && chmod a+rwx . documentation build
- run: podman build -t quay.io/rigazilla/ci-build-centos-9:latest -f ci-build/centos-stream9.Dockerfile .
- run: podman run -v `pwd`:/home/jboss/cpp-client quay.io/rigazilla/ci-build-centos-9:latest /bin/bash -c "cd cpp-client && INFINISPAN_VERSION=13.0.10.Final CLIENT_VERSION=$GITHUB_REF_NAME PLATFORM_TAG=el9 ./build.sh"
- uses: ncipollo/release-action@v1
with:
artifacts: "build/*.rpm,builddeb/*.deb"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
run-ci-tests-win:
runs-on: windows-latest
steps:
Expand Down
46 changes: 46 additions & 0 deletions ci-build/centos-stream9.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
FROM quay.io/centos/centos:stream9

ENV JAVA_HOME=/usr/lib/jvm/java-11

RUN yum -y install 'dnf-command(config-manager)'
RUN yum config-manager --set-enabled crb
RUN dnf -y update && \
dnf -y install \
cmake \
cyrus-sasl-devel \
cyrus-sasl-plain \
cyrus-sasl-md5 \
cyrus-sasl-gssapi \
iputils \
java-11-openjdk-devel \
krb5-workstation \
krb5-devel \
maven \
openssl-devel \
procps-ng \
protobuf \
protobuf-devel \
python3 \
rpmdevtools \
valgrind \
wget \
yum-utils && \
dnf -y group install "Development Tools" && \
dnf clean all && \
rm -rf /var/cache/yum

#RUN wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
#RUN yum -y install apache-maven

#RUN cd /usr/lib64 && ln -s libkrb5.so.3.3 libkrb5.so && ln -s libkrb5support.so.0.1 libkrb5support.so

RUN groupadd -r jboss -g 1000 && useradd -u 1000 -r -g jboss -m -d /home/jboss -s /sbin/nologin -c "JBoss user" jboss && \
chmod 755 /home/jboss

# Set the working directory to jboss' user home directory
WORKDIR /home/jboss

# Specify the user which should be used to execute all commands below
USER jboss


0 comments on commit b9392f2

Please sign in to comment.