Commit ffb317c3 authored by qiuqunfeng's avatar qiuqunfeng
Browse files

commit

parent e8027610
.DS_Store .DS_Store
vendor vendor
.idea .idea
bin bin
\ No newline at end of file dist
...@@ -33,10 +33,10 @@ BIN_DIR = $(shell pwd)/bin/ ...@@ -33,10 +33,10 @@ BIN_DIR = $(shell pwd)/bin/
help: help:
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' @fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
.PHONY: cluster-manager .PHONY: waf-console
ai-gateway: waf-console:
@echo "build ai-gateway" @echo "build waf-console"
go build -v \ go build -v \
-tags=jsoniter -o dist/ai-gateway gitlab.com/tensorsecurity-rd/ai-gateway/cmd -tags=jsoniter -o dist/waf-console gitlab.com/tensorsecurity-rd/waf-console/cmd
#upx --lzma --best dist/ai-gateway #upx --lzma --best dist/waf-console
docker build -t $(REPOPREFIX)/ai-gateway:$(IMAGE_TAG) -f ./build/Dockerfile . docker build -t $(REPOPREFIX)/waf-console:$(IMAGE_TAG) -f ./build/Dockerfile .
\ No newline at end of file
...@@ -12,4 +12,4 @@ RUN sed -i "s!archive.ubuntu.com/!${MIRROR_SOURCE}/!g" /etc/apt/sources.list \ ...@@ -12,4 +12,4 @@ RUN sed -i "s!archive.ubuntu.com/!${MIRROR_SOURCE}/!g" /etc/apt/sources.list \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
CMD /ai-gateway ENTRYPOINT ["/waf-console"]
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment