Skip to content

Commit

Permalink
Merge pull request #554 from rundeck/fix/use-redhat-ubi
Browse files Browse the repository at this point in the history
Switch to redhat/ubi8
  • Loading branch information
gschueler authored Jul 29, 2024
2 parents d2cfc9e + 4ab9f42 commit 581dfbb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
3 changes: 1 addition & 2 deletions dockers/install/rpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ARG VERS=7
FROM centos:$VERS
FROM redhat/ubi8
ARG JDK=java-1.8.0-openjdk
RUN yum -y update
RUN yum -y install ${JDK} ${JDK}-devel which
Expand Down
3 changes: 1 addition & 2 deletions dockers/install/upgrade-rpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ARG VERS
FROM centos:${VERS:-7}
FROM redhat/ubi8

RUN yum -y update
RUN yum -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel which
Expand Down
2 changes: 1 addition & 1 deletion dockers/install/yum/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM centos:8
FROM redhat/ubi8

RUN yum -y update
RUN yum -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel which
Expand Down
2 changes: 1 addition & 1 deletion dockers/verify/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM centos:8
FROM redhat/ubi8

VOLUME /data

Expand Down
12 changes: 4 additions & 8 deletions scripts/install-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ set -euo pipefail
DEBTAG=rdcli-deb
RPMTAG=rdcli-rpm
UBUNTUVERS="18.04 20.04 22.04"
CENTOSVERS="7"
RPMJDK="java-1.8.0-openjdk java-11-openjdk"
DEBJDK="openjdk-8-jdk openjdk-11-jdk"

Expand Down Expand Up @@ -46,13 +45,12 @@ build_deb_version() {

build_rpm_version() {
local TAG=$1
local VERS=$2
local JDK=$3
local JDK=$2
local rpmfile
rpmfile=$(ls rd-cli-tool/build/distributions/rundeck-cli-*.noarch.rpm)

cp "$rpmfile" dockers/install/rpm/rundeck-cli-noarch.rpm
docker build --build-arg VERS="${VERS}" --build-arg JDK="${JDK}" dockers/install/rpm -t "${TAG}"
docker build --build-arg JDK="${JDK}" dockers/install/rpm -t "${TAG}"
}

run_all() {
Expand All @@ -70,10 +68,8 @@ main() {
done
done
for JDK in $RPMJDK; do
for VERS in $CENTOSVERS; do
build_rpm_version "$RPMTAG$VERS-$JDK" "$VERS" "$JDK"
run_all "$RPMTAG$VERS-$JDK"
done
build_rpm_version "$RPMTAG-$JDK" "$JDK"
run_all "$RPMTAG-$JDK"
done
}

Expand Down

0 comments on commit 581dfbb

Please sign in to comment.