Skip to content

Commit

Permalink
fix make curvebs image
Browse files Browse the repository at this point in the history
Signed-off-by: Hanqing Wu <[email protected]>
  • Loading branch information
wu-hanqing authored and opencurveadmin committed Jul 6, 2023
1 parent 78526ee commit 872d38c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ RUN mkdir -p /curvebs /etc/curve /etc/nebd /core /curve/init.d/
COPY curvebs /curvebs
COPY entrypoint.sh /
COPY curvebs/tools/sbin/curve_ops_tool curvebs/nbd/sbin/curve-nbd /usr/bin/
RUN ([ -f /curvebs/curvebs_tgt.deb ] && dpkg -i /curvebs/curvebs_tgt.deb && rm /curvebs/curvebs_tgt.deb) \
RUN (([ -f /curvebs/curvebs_tgt.deb ] && dpkg -i /curvebs/curvebs_tgt.deb && rm /curvebs/curvebs_tgt.deb) || true) \
&& mv /curvebs/lib /usr/lib/nebd \
&& chmod a+x /entrypoint.sh \
&& apt update && apt install -y kmod
ENTRYPOINT ["/entrypoint.sh"]
&& mv /etc/apt/sources.list /etc/apt/sources.list.save \
&& echo "deb http://mirrors.163.com/debian-archive/debian stretch main contrib non-free" > /etc/apt/sources.list \
&& apt-get update && apt install -y kmod \
&& rm -rf /var/lib/apt/lists/*

ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit 872d38c

Please sign in to comment.