Skip to content

Commit

Permalink
Update cd.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: drivebyer <[email protected]>
  • Loading branch information
drivebyer committed Sep 13, 2024
1 parent 7b5256f commit d7beb0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,16 @@ RUN VERSION=$(echo ${REDIS_VERSION} | sed -e "s/^v//g"); \
*) REDIS_DOWNLOAD_URL="http://download.redis.io/releases/redis-${VERSION}.tar.gz";; \
esac; \
curl -fL -Lo redis-${VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}; \
tar xvzf redis-${VERSION}.tar.gz

WORKDIR /tmp/redis-${VERSION}

RUN arch="$(uname -m)"; \
tar xvzf redis-${VERSION}.tar.gz; \
\
arch="$(uname -m)"; \
extraJemallocConfigureFlags="--with-lg-page=16"; \
if [ "$arch" = "aarch64" ] || [ "$arch" = "arm64" ]; then \
sed -ri 's!cd jemalloc && ./configure !&'"$extraJemallocConfigureFlags"' !' /tmp/redis-${VERSION}/deps/Makefile; \
fi; \
export BUILD_TLS=yes; \
make all; \
make install
make -C redis-${VERSION} all; \
make -C redis-${VERSION} install

FROM alpine:3.15

Expand Down
8 changes: 3 additions & 5 deletions Dockerfile.sentinel
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ RUN VERSION=$(echo ${REDIS_SENTINEL_VERSION} | sed -e "s/^v//g"); \
esac; \
\
curl -fL -Lo redis-${VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}; \
tar xvzf redis-${VERSION}.tar.gz

WORKDIR /tmp

RUN arch="$(uname -m)"; \
tar xvzf redis-${VERSION}.tar.gz; \
\
arch="$(uname -m)"; \
extraJemallocConfigureFlags="--with-lg-page=16"; \
if [ "$arch" = "aarch64" ] || [ "$arch" = "arm64" ]; then \
sed -ri 's!cd jemalloc && ./configure !&'"$extraJemallocConfigureFlags"' !' /tmp/redis-${VERSION}/deps/Makefile; \
Expand Down

0 comments on commit d7beb0c

Please sign in to comment.