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 700b289 commit 27778e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ WORKDIR /tmp

RUN REDIS_VERSION=$(echo ${REDIS_VERSION} | sed 's/^v//'); \
case "${REDIS_VERSION}" in \
latest | stable) REDIS_DOWNLOAD_URL="http://download.redis.io";; \
*) REDIS_DOWNLOAD_URL="http://download.redis.io/releases";; \
latest | stable) REDIS_DOWNLOAD_URL="http://download.redis.io/redis-stable.tar.gz";; \
*) REDIS_DOWNLOAD_URL="http://download.redis.io/releases/redis-${REDIS_VERSION}.tar.gz";; \
esac; \
curl -fL -Lo redis-${REDIS_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}/redis-${REDIS_VERSION}.tar.gz; \
curl -fL -Lo redis-${REDIS_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}; \
tar xvzf redis-${REDIS_VERSION}.tar.gz

WORKDIR /tmp/redis-${REDIS_VERSION}
Expand Down
12 changes: 6 additions & 6 deletions Dockerfile.sentinel
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ WORKDIR /tmp

RUN REDIS_SENTINEL_VERSION=$(echo ${REDIS_SENTINEL_VERSION} | sed 's/^v//'); \
case "${REDIS_SENTINEL_VERSION}" in \
latest | stable) REDIS_DOWNLOAD_URL="http://download.redis.io";; \
*) REDIS_DOWNLOAD_URL="http://download.redis.io/releases";; \
latest | stable) REDIS_DOWNLOAD_URL="http://download.redis.io/redis-stable.tar.gz";; \
*) REDIS_DOWNLOAD_URL="http://download.redis.io/releases/redis-${REDIS_SENTINEL_VERSION}.tar.gz";; \
esac; \
\
curl -fL -Lo redis-${REDIS_SENTINEL_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}/redis-${REDIS_SENTINEL_VERSION}.tar.gz; \
curl -fL -Lo redis-${REDIS_SENTINEL_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}; \
tar xvzf redis-${REDIS_SENTINEL_VERSION}.tar.gz

WORKDIR /tmp/redis-${REDIS_SENTINEL_VERSION}
WORKDIR /tmp

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

FROM alpine:3.15

Expand Down

0 comments on commit 27778e8

Please sign in to comment.