Skip to content

Commit

Permalink
chore: venus docker : docker move copying ddl to the stage when runti…
Browse files Browse the repository at this point in the history
…me was built (#5092)

* feat: add ddl when runtime was build
  • Loading branch information
LinZexiao authored Jul 15, 2022
1 parent 3eaaa30 commit b5c4eb2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
15 changes: 15 additions & 0 deletions docker/venus-runtime.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,18 @@ RUN ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime \

# set charset
ENV LANG C.UTF-8


# copy ddl
COPY --from=filvenus/venus-buildenv /usr/lib/x86_64-linux-gnu/libhwloc.so.15 \
/usr/lib/x86_64-linux-gnu/libOpenCL.so.1 \
/lib/x86_64-linux-gnu/libgcc_s.so.1 \
/lib/x86_64-linux-gnu/libutil.so.1 \
/lib/x86_64-linux-gnu/librt.so.1 \
/lib/x86_64-linux-gnu/libpthread.so.0 \
/lib/x86_64-linux-gnu/libm.so.6 \
/lib/x86_64-linux-gnu/libdl.so.2 \
/lib/x86_64-linux-gnu/libc.so.6 \
/usr/lib/x86_64-linux-gnu/libnuma.so.1 \
/usr/lib/x86_64-linux-gnu/libltdl.so.7 \
/lib/
13 changes: 0 additions & 13 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,6 @@ WORKDIR /app
COPY --from=buildenv /go/venus/venus /app/venus
COPY ./docker/script /script

# copy ddl
COPY --from=buildenv /usr/lib/x86_64-linux-gnu/libhwloc.so.15 \
/usr/lib/x86_64-linux-gnu/libOpenCL.so.1 \
/lib/x86_64-linux-gnu/libgcc_s.so.1 \
/lib/x86_64-linux-gnu/libutil.so.1 \
/lib/x86_64-linux-gnu/librt.so.1 \
/lib/x86_64-linux-gnu/libpthread.so.0 \
/lib/x86_64-linux-gnu/libm.so.6 \
/lib/x86_64-linux-gnu/libdl.so.2 \
/lib/x86_64-linux-gnu/libc.so.6 \
/usr/lib/x86_64-linux-gnu/libnuma.so.1 \
/usr/lib/x86_64-linux-gnu/libltdl.so.7 \
/lib/

EXPOSE 3453
ENTRYPOINT ["/app/venus","daemon"]

0 comments on commit b5c4eb2

Please sign in to comment.