Skip to content

Commit

Permalink
Add support for s390x (#132)
Browse files Browse the repository at this point in the history
Signed-off-by: Byron Ruth <byron@nats.io>
  • Loading branch information
bruth authored Dec 12, 2023
1 parent d81b257 commit b79526a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions 2.10.x/alpine3.18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ RUN set -eux; \
armv7) natsArch='arm7'; sha256='d96042f12ecc0578d193d5353c362a572384c6ad9a46db73b7cb5f28cb6e4ad2' ;; \
x86_64) natsArch='amd64'; sha256='91f5b493ce3151baa0b15d8bf093279dc94106dd56a201704a20de567607bcf7' ;; \
x86) natsArch='386'; sha256='a5cddcac9f8debaf45e7b9ba3960778b1c786020c690991094ce31d033ec7649' ;; \
s390x) natsArch='s390x'; sha256='01138e819d34970c76d621464dc8e8dfce0e05a162b5c36e2a4aed6198c6aba6' ;; \
*) echo >&2 "error: $apkArch is not supported!"; exit 1 ;; \
esac; \
\
Expand Down
1 change: 1 addition & 0 deletions 2.9.x/alpine3.18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ RUN set -eux; \
armv7) natsArch='arm7'; sha256='514e4a1123f82b775d6b17a12d1a7ce10fa8b5a1b86b9a831c09b13a7e6bc9b0' ;; \
x86_64) natsArch='amd64'; sha256='f4d5dc256d758fa42e7cbf2ddcacc2edfc379bedc0bbdcf5fe6cb67ff3a82d7c' ;; \
x86) natsArch='386'; sha256='b477a8e9a28746fce5bdf5333d16469351de2294402085df81126e699399ec48' ;; \
s390x) natsArch='s390x'; sha256='1b324741684fc7755769c0a212ddd97c2fa9241b5c29886d47d3982078bacf96' ;; \
*) echo >&2 "error: $apkArch is not supported!"; exit 1 ;; \
esac; \
\
Expand Down
2 changes: 1 addition & 1 deletion update.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def update_alpine_shasums(base_dir: str, new_ver: str, shasums: typing.Dict):
with open(file, "r") as fd:
data = fd.read()

for arch in ["arm64", "arm6", "arm7", "amd64", "386"]:
for arch in ["arm64", "arm6", "arm7", "amd64", "386", "s390x"]:
key = f"nats-server-v{new_ver}-linux-{arch}.tar.gz"
arch_sha = shasums.get(key)
r = re.compile(f"(natsArch='{arch}'; )"+r"sha256='[A-Fa-f0-9]{64}'")
Expand Down

0 comments on commit b79526a

Please sign in to comment.