Skip to content

Commit 41c337f

Browse files
authored
v4.4_release (#23)
* v4.4_release * v4.4-ubi8-buildx --------- Co-authored-by: zhangzhe <zhangzhe>
1 parent 0b3f19c commit 41c337f

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

4/ubi8/Dockerfile

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN groupadd -g 1000 ivorysql; \
1919
RUN mkdir /docker-entrypoint-initdb.d
2020

2121
ENV IVORY_MAJOR 4
22-
ENV IVORY_VERSION 4.2
22+
ENV IVORY_VERSION 4.4
2323

2424
RUN 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

7474
RUN 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
7883
FROM redhat/ubi8:latest
7984

8085
COPY --from=builder /var/local/ivorysql /var/local/ivorysql/
8186
COPY --from=builder /usr/local/bin/gosu /usr/local/bin/gosu
8287

8388
ENV IVORY_MAJOR 4
84-
ENV IVORY_VERSION 4.2
89+
ENV IVORY_VERSION 4.4
8590

8691
RUN mkdir /docker-entrypoint-initdb.d
8792

versions.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"arches": [
2828
"amd64"
2929
],
30-
"version": "4.2"
30+
"version": "4.4"
3131
},
3232
"redhat": "ubi8",
3333
"debian": "bookworm",
@@ -36,13 +36,13 @@
3636
"amd64",
3737
"arm64v8"
3838
],
39-
"version": "4.2"
39+
"version": "4.4"
4040
},
4141
"major": 4,
4242
"variants": [
4343
"ubi8",
4444
"bookworm"
4545
],
46-
"version": "4.2"
46+
"version": "4.4"
4747
}
4848
}

0 commit comments

Comments
 (0)