Commit da742ad8 authored by 罗永亮's avatar 罗永亮

Update .beagle/dockerfile, rcache.conf files

parent 09ea89ab
Pipeline #91727 failed with stage
FROM alpine:3.15 as builder FROM alpine:3.15 as builder
MAINTAINER Opstree Solutions
LABEL VERSION=1.0 \
ARCH=AMD64 \
DESCRIPTION="A production grade performance tuned redis docker image created by Opstree Solutions"
ARG REDIS_DOWNLOAD_URL="http://download.redis.io/"
ARG REDIS_VERSION="stable" ARG REDIS_VERSION="stable"
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories &&\ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories &&\
apk add --no-cache su-exec tzdata make curl build-base linux-headers bash openssl-dev apk add --no-cache su-exec tzdata make curl build-base linux-headers bash openssl-dev
RUN curl -fL -Lo /tmp/redis-${REDIS_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}/redis-${REDIS_VERSION}.tar.gz && \ RUN curl -fL -Lo /tmp/redis-${REDIS_VERSION}.tar.gz https://dl.wodcloud.com/lyl/redis-stable.tar.gz && \
cd /tmp && \ cd /tmp && \
tar xvzf redis-${REDIS_VERSION}.tar.gz && \ tar xf redis-${REDIS_VERSION}.tar.gz && \
cd redis-${REDIS_VERSION} && \ cd redis-${REDIS_VERSION} && \
make && \ make && \
make install BUILD_TLS=yes make install BUILD_TLS=yes
FROM alpine:3.15 FROM alpine:3.15
MAINTAINER Opstree Solutions
LABEL VERSION=1.0 \
ARCH=AMD64 \
DESCRIPTION="A production grade performance tuned redis docker image created by Opstree Solutions"
COPY --from=builder /usr/local/bin/redis-server /usr/local/bin/redis-server COPY --from=builder /usr/local/bin/rcache-server /usr/local/bin/rcache-server
COPY --from=builder /usr/local/bin/redis-cli /usr/local/bin/redis-cli COPY --from=builder /usr/local/bin/rcache-cli /usr/local/bin/rcache-cli
RUN addgroup -S -g 1000 redis && adduser -S -G redis -u 1000 redis && \ RUN addgroup -S -g 1000 rcache && adduser -S -G rcache -u 1000 rcache && \
apk add --no-cache bash apk add --no-cache bash
COPY redis.conf /etc/redis/redis.conf COPY rcache.conf /etc/redis/rcache.conf
COPY entrypoint.sh /usr/bin/entrypoint.sh COPY entrypoint.sh /usr/bin/entrypoint.sh
...@@ -42,7 +30,7 @@ COPY setupMasterSlave.sh /usr/bin/setupMasterSlave.sh ...@@ -42,7 +30,7 @@ COPY setupMasterSlave.sh /usr/bin/setupMasterSlave.sh
COPY healthcheck.sh /usr/bin/healthcheck.sh COPY healthcheck.sh /usr/bin/healthcheck.sh
RUN chown -R redis:redis /etc/redis RUN chown -R rcache:rcache /etc/rcache
VOLUME ["/data"] VOLUME ["/data"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment