Skip to content

Commit

Permalink
OPSEXP-2239 testing
Browse files Browse the repository at this point in the history
  • Loading branch information
slohe1 committed Sep 18, 2023
1 parent de868d5 commit 4242955
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ jobs:
flavor: centos
major: 7
java_major: 17
- base_image:
flavor: rockylinux
major: 9
java_major: 11
jdist: jdk
# - base_image:
# flavor: rockylinux
# major: 9
# java_major: 11
# jdist: jdk
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,21 @@ ENV JAVA_HOME /etc/alternatives/jre
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8

RUN \
yum update --security -y && \
if [ "$JDIST" = 'jdk' ]; then JAVA_PKG_TYPE="devel"; else JAVA_PKG_TYPE="headless"; fi && \
yum install -y langpacks-en java-${JAVA_MAJOR}-openjdk-${JAVA_PKG_TYPE} && \
yum clean all && rm -rf /var/cache/yum

FROM rockylinux:9.2.20230513 AS rockylinux9

ARG JDIST
ARG JAVA_MAJOR

ENV JAVA_HOME /etc/alternatives/jre
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8

RUN \
yum update --security -y && \
if [ "$JDIST" = 'jdk' ]; then JAVA_PKG_TYPE="devel"; else JAVA_PKG_TYPE="headless"; fi && \
Expand Down

0 comments on commit 4242955

Please sign in to comment.