1 Star 0 Fork 0

宇宙蒙面侠X/redis-cluster-operator-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 1.45 KB
一键复制 编辑 原始数据 按行查看 历史
o-wuyj 提交于 2021-06-12 15:31 . redis集群模式启动
FROM gradle:6.8.0-jdk11 as builder
RUN mkdir -p /home/gradle/cache_home
ENV GRADLE_USER_HOME /home/gradle/cache_home
RUN mkdir -p /usr/src/java-code/controllers/redis-cluster-controller
COPY controllers/redis-cluster-controller/build.gradle /usr/src/java-code/controllers/redis-cluster-controller/
RUN mkdir -p /usr/src/java-code/operators/redis-cluster-operator
COPY operators/redis-cluster-operator/build.gradle /usr/src/java-code/operators/redis-cluster-operator/
COPY build.gradle /usr/src/java-code/
COPY settings.gradle /usr/src/java-code/
COPY gradle.properties /usr/src/java-code/
WORKDIR /usr/src/java-code
RUN gradle -p operators/redis-cluster-operator dependencies -i --stacktrace
RUN gradle -p operators/redis-cluster-operator buildDependents -i --stacktrace
COPY controllers/redis-cluster-controller/src /usr/src/java-code/controllers/redis-cluster-controller/src
COPY operators/redis-cluster-operator/src /usr/src/java-code/operators/redis-cluster-operator/src
RUN gradle -p operators/redis-cluster-operator shadowJar -i --stacktrace
FROM azul/zulu-openjdk-alpine:13.0.3-13.31.11-jre-headless
VOLUME /tmp
RUN mkdir -p /home
COPY --from=builder /usr/src/java-code/operators/redis-cluster-operator/build/libs/redis-cluster-operator-1.0-all.jar /home
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone
WORKDIR /home
ENV JAVA_OPTS=""
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -jar redis-cluster-operator-1.0-all.jar" ]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/awol2010ex/redis-cluster-operator-demo.git
git@gitee.com:awol2010ex/redis-cluster-operator-demo.git
awol2010ex
redis-cluster-operator-demo
redis-cluster-operator-demo
master

搜索帮助