Skip to content

Commit

Permalink
feat: improve docker usage (#246)
Browse files Browse the repository at this point in the history
* feat: improve docker usage
  • Loading branch information
LinZexiao authored Sep 1, 2022
1 parent 4aae6de commit d2fb10f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 26 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ venus-messager-tools
*.toml.*

__debug_bin
dockerfile
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ test:

.PHONY: docker



TAG:=test
docker:
docker build --build-arg https_proxy=$(BUILD_DOCKER_PROXY) -t venus-messager .
curl -O https://raw.githubusercontent.com/filecoin-project/venus-docs/master/script/dockerfile
docker build --build-arg https_proxy=$(BUILD_DOCKER_PROXY) --build-arg BUILD_TARGET=venus-messager -t venus-messager .
docker tag venus-messager filvenus/venus-messager:$(TAG)
5 changes: 5 additions & 0 deletions docker/script/init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

echo "EXEC: ./venus-messager $@ \n\n"

./venus-messager $@
23 changes: 0 additions & 23 deletions dockerfile

This file was deleted.

0 comments on commit d2fb10f

Please sign in to comment.