@@ -19,7 +19,7 @@ RUN groupadd -g 1000 ivorysql; \
1919RUN mkdir /docker-entrypoint-initdb.d
2020
2121ENV IVORY_MAJOR 4
22- ENV IVORY_VERSION 4.2
22+ ENV IVORY_VERSION 4.4
2323
2424RUN curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo; \
2525 sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo
@@ -53,10 +53,10 @@ RUN mkdir -p /usr/src/ivorysql; \
5353 ; \
5454 rm ivorysql.tar.gz; \
5555 cd /usr/src/ivorysql; \
56- wget https://repo.almalinux.org/almalinux/8/PowerTools/x86_64 /os/Packages/bison-devel-3.0.4-10.el8.x86_64 .rpm; \
57- dnf install -y bison-devel-3.0.4-10.el8.x86_64 .rpm; \
58- wget https://repo.almalinux.org/almalinux/8/AppStream/x86_64 /os/Packages/bison-3.0.4-10.el8.x86_64 .rpm; \
59- dnf install -y bison-3.0.4-10.el8.x86_64 .rpm; \
56+ wget https://repo.almalinux.org/almalinux/8/PowerTools/$(arch) /os/Packages/bison-devel-3.0.4-10.el8.$(arch) .rpm; \
57+ dnf install -y bison-devel-3.0.4-10.el8.$(arch) .rpm; \
58+ wget https://repo.almalinux.org/almalinux/8/AppStream/$(arch) /os/Packages/bison-3.0.4-10.el8.$(arch) .rpm; \
59+ dnf install -y bison-3.0.4-10.el8.$(arch) .rpm; \
6060 ./configure \
6161 --prefix=/var/local/ivorysql/ivorysql-$IVORY_MAJOR \
6262 --enable-cassert --enable-debug --enable-rpath --with-tcl \
@@ -72,16 +72,21 @@ RUN mkdir -p /usr/src/ivorysql; \
7272 /usr/local/share/man
7373
7474RUN chown -R ivorysql:ivorysql /var/local/ivorysql/ivorysql-$IVORY_MAJOR
75- RUN curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64"
76- RUN chmod +x /usr/local/bin/gosu
77-
75+ RUN ARCH="$(uname -m)" ; \
76+ case "${ARCH}" in \
77+ x86_64) ARCH='amd64' ;; \
78+ aarch64) ARCH='arm64' ;; \
79+ *) echo "Unsupported architecture: ${ARCH}" ; exit 1 ;; \
80+ esac; \
81+ curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.11/gosu-${ARCH}" ; \
82+ chmod +x /usr/local/bin/gosu
7883FROM redhat/ubi8:latest
7984
8085COPY --from=builder /var/local/ivorysql /var/local/ivorysql/
8186COPY --from=builder /usr/local/bin/gosu /usr/local/bin/gosu
8287
8388ENV IVORY_MAJOR 4
84- ENV IVORY_VERSION 4.2
89+ ENV IVORY_VERSION 4.4
8590
8691RUN mkdir /docker-entrypoint-initdb.d
8792
0 commit comments