Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
beagle-rcache-image
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
market
beagle-rcache-image
Commits
da742ad8
Commit
da742ad8
authored
Jan 10, 2023
by
罗永亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .beagle/dockerfile, rcache.conf files
parent
09ea89ab
Pipeline
#91727
failed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
19 deletions
+7
-19
.beagle/dockerfile
.beagle/dockerfile
+7
-19
rcache.conf
rcache.conf
+0
-0
No files found.
.beagle/dockerfile
View file @
da742ad8
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"
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
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
&&
\
tar
x
vz
f redis-
${
REDIS_VERSION
}
.tar.gz
&&
\
tar
xf redis-
${
REDIS_VERSION
}
.tar.gz
&&
\
cd
redis-
${
REDIS_VERSION
}
&&
\
make
&&
\
make
install
BUILD_TLS
=
yes
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/r
edis-server /usr/local/bin/redis
-server
COPY
--from=builder /usr/local/bin/r
edis-cli /usr/local/bin/redis
-cli
COPY
--from=builder /usr/local/bin/r
cache-server /usr/local/bin/rcache
-server
COPY
--from=builder /usr/local/bin/r
cache-cli /usr/local/bin/rcache
-cli
RUN
addgroup
-S
-g
1000 r
edis
&&
adduser
-S
-G
redis
-u
1000 redis
&&
\
RUN
addgroup
-S
-g
1000 r
cache
&&
adduser
-S
-G
rcache
-u
1000 rcache
&&
\
apk add
--no-cache
bash
COPY
r
edis.conf /etc/redis/redis
.conf
COPY
r
cache.conf /etc/redis/rcache
.conf
COPY
entrypoint.sh /usr/bin/entrypoint.sh
...
...
@@ -42,7 +30,7 @@ COPY setupMasterSlave.sh /usr/bin/setupMasterSlave.sh
COPY
healthcheck.sh /usr/bin/healthcheck.sh
RUN
chown
-R
r
edis:redis /etc/redis
RUN
chown
-R
r
cache:rcache /etc/rcache
VOLUME
["/data"]
...
...
r
edis
.conf
→
r
cache
.conf
View file @
da742ad8
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment