Skip to content

Commit 4cbeb85

Browse files
committed
feat:add default piece storage path
1 parent bba4b8a commit 4cbeb85

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

docker/script/init.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
echo "Init Begin!"
4+
5+
echo "args:"
6+
echo $@
7+
8+
9+
echo "set default piece storage path: /PieceStorage"
10+
mkdir -p ~/.venusmarket/
11+
cat /docker/config/PieceStorage.toml > ~/.venusmarket/config.toml
12+
cat ~/.venusmarket/config.toml
13+
echo "Init End!"
14+
15+
/app/venus-market $@

dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ COPY --from=buildenv /usr/lib/x86_64-linux-gnu/libhwloc.so.5 \
2929
/usr/lib/x86_64-linux-gnu/libltdl.so.7 \
3030
/lib/
3131

32-
EXPOSE 41235
33-
ENTRYPOINT ["/app/venus-market"]
32+
EXPOSE 41235 58418
33+
ENTRYPOINT ["/script/init.sh"]
34+
3435

3536

3637

0 commit comments

Comments
 (0)