-
Notifications
You must be signed in to change notification settings - Fork 527
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix]docker: reduce the number of mirror layers
Signed-off-by: Cyber-SiKu <[email protected]>
- Loading branch information
1 parent
1a44544
commit 1e7a0d9
Showing
3 changed files
with
11 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
FROM opencurvedocker/curve-base:debian9 | ||
ENV TZ=Asia/Shanghai | ||
RUN mkdir -p /curvefs /etc/curvefs /core /etc/curve | ||
COPY curvefs/client /curvefs/client | ||
COPY curvefs/conf /curvefs/conf | ||
COPY curvefs/etcd /curvefs/etcd | ||
COPY curvefs/mds /curvefs/mds | ||
COPY curvefs/metaserver /curvefs/metaserver | ||
COPY curvefs/monitor /curvefs/monitor | ||
COPY curvefs/tools /curvefs/tools | ||
COPY entrypoint.sh / | ||
COPY curvefs/tools/sbin/curvefs_tool /usr/bin | ||
COPY curvefs /curvefs | ||
COPY libmemcached.so libmemcached.so.11 libhashkit.so.2 /usr/lib/ | ||
RUN chmod a+x /entrypoint.sh | ||
RUN mkdir -p /etc/curvefs /core /etc/curve && chmod a+x /entrypoint.sh \ | ||
&& cp /curvefs/tools/sbin/curvefs_tool /usr/bin | ||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,8 @@ | ||
FROM opencurvedocker/curve-base:debian9 | ||
ENV TZ=Asia/Shanghai | ||
RUN mkdir -p /curvebs /etc/curve /etc/nebd /core | ||
COPY curvebs/chunkserver /curvebs/chunkserver | ||
COPY curvebs/conf /curvebs/conf | ||
COPY curvebs/etcd /curvebs/etcd | ||
COPY curvebs/mds /curvebs/mds | ||
COPY curvebs/monitor /curvebs/monitor | ||
COPY curvebs/nbd /curvebs/nbd | ||
COPY curvebs/nebd /curvebs/nebd | ||
COPY curvebs/playground /curvebs/playground | ||
COPY curvebs/snapshotclone /curvebs/snapshotclone | ||
COPY curvebs/tools /curvebs/tools | ||
COPY entrypoint.sh / | ||
COPY curvebs/tools/sbin/curve_ops_tool curvebs/nbd/sbin/curve-nbd /usr/bin/ | ||
RUN chmod a+x /entrypoint.sh | ||
COPY curvebs /curvebs | ||
RUN mkdir -p /etc/curve /etc/nebd \ | ||
&& chmod a+x /entrypoint.sh \ | ||
&& cp curvebs/tools/sbin/curve_ops_tool curvebs/nbd/sbin/curve-nbd \ | ||
&& cp curvebs/tools/sbin/curve_ops_tool /usr/bin/ | ||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters