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
4e774bd1
Commit
4e774bd1
authored
Jan 10, 2023
by
罗永亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .beagle/dockerfile
parent
271e6f0e
Pipeline
#91712
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
19 deletions
+18
-19
.beagle/dockerfile
.beagle/dockerfile
+18
-19
No files found.
.beagle/dockerfile
View file @
4e774bd1
ARG
BASE
FROM
alpine:3.15 as builder
FROM
$BASE as builder
MAINTAINER
Beagle
MAINTAINER
Opstree Solutions
LABEL
VERSION=1.0 \
ARCH=AMD64
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
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
https://dl.wodcloud.com/lyl/redis-stable
.tar.gz
&&
\
RUN
curl
-fL
-Lo
/tmp/redis-
${
REDIS_VERSION
}
.tar.gz
${
REDIS_DOWNLOAD_URL
}
/redis-
${
REDIS_VERSION
}
.tar.gz
&&
\
cd
/tmp
&&
\
tar
xvzf redis-
${
REDIS_VERSION
}
.tar.gz
&&
\
cd
redis-
${
REDIS_VERSION
}
&&
\
make
&&
\
make
install
BUILD_TLS
=
yes
FROM
$BASE
FROM
alpine:3.15
MAINTAINER
Beagle
MAINTAINER
Opstree Solutions
LABEL
VERSION=1.0
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
cache-server /usr/local/bin/rcache
-server
COPY
--from=builder /usr/local/bin/r
cache-cli /usr/local/bin/rcache
-cli
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
RUN
addgroup
-S
-g
1000 r
cache
&&
adduser
-S
-G
rcache
-u
1000 rcache
&&
\
RUN
addgroup
-S
-g
1000 r
edis
&&
adduser
-S
-G
redis
-u
1000 redis
&&
\
apk add
--no-cache
bash
COPY
rcache.conf /etc/rcache/rcache
.conf
COPY
redis.conf /etc/redis/redis
.conf
COPY
entrypoint.sh /usr/bin/entrypoint.sh
COPY
setupMasterSlave.sh /usr/bin/setupMasterSlave.sh
#COPY healthcheck.sh /usr/bin/healthcheck.sh
COPY
healthcheck.sh /usr/bin/healthcheck.sh
RUN
chown
-R
rcache:rcache /etc/rcache
RUN
chown
-R
redis:redis /etc/redis
VOLUME
["/data"]
...
...
@@ -52,4 +51,4 @@ EXPOSE 6379
USER
1000
ENTRYPOINT
["
sh","
/usr/bin/entrypoint.sh"]
ENTRYPOINT
["/usr/bin/entrypoint.sh"]
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