Skip to content

Commit

Permalink
Migrate from CentOS to Alma Linux 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Praveen2112 committed Jul 7, 2024
1 parent 8064bb8 commit 7e3bc50
Show file tree
Hide file tree
Showing 43 changed files with 43 additions and 34 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
include:
- image: accumulo
test: accumulo
- image: centos7-oj17
- image: almalinux9-oj17
platforms: linux/amd64,linux/arm64
- image: centos7-oj17-openldap-referrals
- image: almalinux9-oj17-openldap-referrals
platforms: linux/amd64,linux/arm64
test: openldap
- image: centos7-oj17-openldap-active-directory
- image: almalinux9-oj17-openldap-active-directory
platforms: linux/amd64,linux/arm64
test: openldap-active-directory
- image: spark3-iceberg
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
exit 0
fi
skipped_images=(
testing/centos7-oj17-openldap-base
testing/almalinux9-oj17-openldap-base
)
single_arch=(
testing/accumulo
Expand All @@ -79,11 +79,11 @@ jobs:
testing/hdp3.1-hive-kerberized-kms
)
multi_arch=(
testing/centos7-oj11
testing/centos7-oj17
testing/centos7-oj17-openldap
testing/centos7-oj17-openldap-referrals
testing/centos7-oj17-openldap-active-directory
testing/almalinux9-oj11
testing/almalinux9-oj17
testing/almalinux9-oj17-openldap
testing/almalinux9-oj17-openldap-referrals
testing/almalinux9-oj17-openldap-active-directory
testing/hive3.1-hive
testing/kerberos
testing/phoenix5
Expand Down
2 changes: 1 addition & 1 deletion archived/hdp3.1-hive/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ RUN yum install -y \
lzo-devel \
lzop \

# Mysql is not present in Centos7 repositories, use mariadb as a replacement
# Mysql is not present in Alma Linux 9 repositories, use mariadb as a replacement
mariadb-server \
mysql-connector-java \

Expand Down
2 changes: 1 addition & 1 deletion bin/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function run_hive_transactional_tests() {
}

function check_spark() {
environment_compose exec spark curl -f http://localhost:10213
environment_compose exec spark curl --http0.9 -f http://localhost:10213 -o /dev/null
}

function run_spark_tests() {
Expand Down
2 changes: 1 addition & 1 deletion etc/compose/openldap-active-directory/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '2.0'
services:
openldap:
image: testing/centos7-oj17-openldap-active-directory:latest$ARCH
image: testing/almalinux9-oj17-openldap-active-directory:latest$ARCH
2 changes: 1 addition & 1 deletion etc/compose/openldap/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '2.0'
services:
openldap:
image: testing/centos7-oj17-openldap:latest$ARCH
image: testing/almalinux9-oj17-openldap:latest$ARCH
2 changes: 1 addition & 1 deletion testing/accumulo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# limitations under the License.

ARG ARCH
FROM testing/centos7-oj11:unlabelled$ARCH
FROM testing/almalinux9-oj11:unlabelled$ARCH

ARG ACCUMULO_VERSION=3.0.0
ARG HADOOP_VERSION=3.3.5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM library/centos:7
FROM library/almalinux:9

COPY ./files /

Expand All @@ -19,6 +19,7 @@ RUN \
set -xeu && \
yum update -y && \
yum install -y \
python \
nc \
wget \
&& \
Expand All @@ -30,7 +31,7 @@ RUN \
alternatives --set javac /usr/lib/jvm/zulu-11/bin/javac && \
\
# install supervisor
yum --enablerepo=extras install -y setuptools epel-release && \
yum --enablerepo=extras install -y epel-release && \
yum install -y supervisor && \
\
# install commonly needed packages
Expand All @@ -41,6 +42,7 @@ RUN \
telnet `# helpful when troubleshooting product tests` \
vim `# helpful when troubleshooting product tests` \
jq `# helpful json processing tool` \
procps \
&& \
# cleanup
yum -y clean all && rm -rf /tmp/* /var/tmp/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# limitations under the License.

ARG ARCH
FROM testing/centos7-oj17-openldap-base:unlabelled$ARCH
FROM testing/almalinux9-oj17-openldap-base:unlabelled$ARCH

# COPY CONFIGURATION
COPY ./files /
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# limitations under the License.

ARG ARCH
FROM testing/centos7-oj17:unlabelled$ARCH
FROM testing/almalinux9-oj17:unlabelled$ARCH

# INSTALL OPENLDAP
RUN yum -y install openssl openldap openldap-clients openldap-servers \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dn: olcDatabase={2}hdb,cn=config
dn: olcDatabase={2}mdb,cn=config
changetype: modify
replace: olcRootDN
olcRootDN: cn=admin,dc=trino,dc=testldap,dc=com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# limitations under the License.

ARG ARCH
FROM testing/centos7-oj17-openldap:unlabelled$ARCH
FROM testing/almalinux9-oj17-openldap:unlabelled$ARCH

# COPY CONFIGURATION
COPY ./files /
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# limitations under the License.

ARG ARCH
FROM testing/centos7-oj17-openldap-base:unlabelled$ARCH
FROM testing/almalinux9-oj17-openldap-base:unlabelled$ARCH

# COPY CONFIGURATION
COPY ./files /
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ objectClass: olcModuleList
olcModuleLoad: memberof.la
olcModulePath: /usr/lib64/openldap

dn: olcOverlay={0}memberof,olcDatabase={2}hdb,cn=config
dn: olcOverlay={0}memberof,olcDatabase={2}mdb,cn=config
objectClass: olcConfig
objectClass: olcMemberOf
objectClass: olcOverlayConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ objectclass: olcModuleList
objectclass: top
olcmoduleload: refint.la

dn: olcOverlay={1}refint,olcDatabase={2}hdb,cn=config
dn: olcOverlay={1}refint,olcDatabase={2}mdb,cn=config
objectClass: olcConfig
objectClass: olcOverlayConfig
objectClass: olcRefintConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM library/centos:7
FROM library/almalinux:9

COPY ./files /

Expand All @@ -19,6 +19,7 @@ RUN \
set -xeu && \
yum update -y && \
yum install -y \
python \
nc \
wget \
&& \
Expand All @@ -30,7 +31,7 @@ RUN \
alternatives --set javac /usr/lib/jvm/zulu-17/bin/javac && \
\
# install supervisor
yum --enablerepo=extras install -y setuptools epel-release && \
yum --enablerepo=extras install -y epel-release && \
yum install -y supervisor && \
\
# install commonly needed packages
Expand All @@ -41,6 +42,7 @@ RUN \
telnet `# helpful when troubleshooting product tests` \
vim `# helpful when troubleshooting product tests` \
jq `# helpful json processing tool` \
procps \
&& \
# cleanup
yum -y clean all && rm -rf /tmp/* /var/tmp/*
Expand Down
4 changes: 4 additions & 0 deletions testing/hdp3.1-hive/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ FROM ghcr.io/trinodb/testing/hdp3.1-hive:38

COPY ./files /

# replace mirrorlist.centos.org and mirror.centos.org with vault.centos.org
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

RUN \
set -xeu && \
# Remove unaccessible HDP3 repos so yum is still usable
Expand Down
5 changes: 3 additions & 2 deletions testing/hive3.1-hive/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# limitations under the License.

ARG ARCH
FROM testing/centos7-oj17:unlabelled$ARCH
FROM testing/almalinux9-oj17:unlabelled$ARCH

ARG JAVA8_ZULU_VERSION=8.64.0.19-ca-jdk8.0.345

Expand All @@ -21,6 +21,7 @@ RUN yum install -y \
openssh-clients \
openssh-server \
psmisc \
passwd \
which && \
# Install Zulu JDK
echo "Downloading zulu${JAVA8_ZULU_VERSION}-linux.$(uname -m).rpm..." && \
Expand All @@ -32,7 +33,7 @@ RUN yum install -y \
alternatives --set javac /usr/lib/jvm/zulu-8/bin/javac \
&& yum -q clean all && rm -rf /var/cache/yum

# Override JAVA_HOME inherited from testing/centos7-oj17
# Override JAVA_HOME inherited from testing/almalinux9-oj17
ENV JAVA_HOME=/usr/lib/jvm/zulu-8

ARG HADOOP_VERSION=3.1.2
Expand Down
4 changes: 2 additions & 2 deletions testing/hive3.1-hive/files/root/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ mkdir /var/log/mysql /var/log/hive /var/log/hadoop-hdfs
mysql_install_db

chown -R mysql:mysql /var/lib/mysql
chown -R mysql:mysql /var/log/mariadb

/usr/bin/mysqld_safe &
sleep 10s

echo "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; FLUSH PRIVILEGES;" | mysql
echo "GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION; FLUSH PRIVILEGES;" | mysql
echo "CREATE DATABASE metastore;" | mysql
/usr/bin/mysqladmin -u root password 'root'
/opt/hive/bin/schematool -dbType mysql -initSchema

killall mysqld
sleep 10s
chown -R mysql:mysql /var/log/mysql/
rm -rf /tmp/* /var/tmp/*
2 changes: 1 addition & 1 deletion testing/kerberos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# limitations under the License.

ARG ARCH
FROM testing/centos7-oj17:unlabelled$ARCH
FROM testing/almalinux9-oj17:unlabelled$ARCH

ARG ADDPRINC_ARGS="-maxrenewlife \"10 days\" +allow_renewable"

Expand Down
2 changes: 1 addition & 1 deletion testing/phoenix5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# limitations under the License.

ARG ARCH
FROM testing/centos7-oj11:unlabelled$ARCH
FROM testing/almalinux9-oj11:unlabelled$ARCH

ARG HBASE_VERSION=2.5.8
ARG ZOOKEEPER_VERSION=3.9.2
Expand Down
2 changes: 1 addition & 1 deletion testing/spark3-delta/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# limitations under the License.

ARG ARCH
FROM testing/centos7-oj11:unlabelled$ARCH
FROM testing/almalinux9-oj11:unlabelled$ARCH

ARG SPARK_VERSION=3.5.0
ARG HADOOP_VERSION=3
Expand Down
2 changes: 1 addition & 1 deletion testing/spark3-hudi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# limitations under the License.

ARG ARCH
FROM testing/centos7-oj11:unlabelled$ARCH
FROM testing/almalinux9-oj11:unlabelled$ARCH

ARG SPARK_VERSION=3.3.1
ARG HADOOP_VERSION=3
Expand Down
2 changes: 1 addition & 1 deletion testing/spark3-iceberg/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# limitations under the License.

ARG ARCH
FROM testing/centos7-oj11:unlabelled$ARCH
FROM testing/almalinux9-oj11:unlabelled$ARCH

ARG SPARK_VERSION=3.4.2
ARG HADOOP_VERSION=3
Expand Down

0 comments on commit 7e3bc50

Please sign in to comment.