mirror of https://github.com/q191201771/lal.git
[chore] all shell file go to script folder
parent
597f9d1e4b
commit
5983992642
@ -1,36 +1,42 @@
|
||||
.PHONY: build
|
||||
build:
|
||||
export GO111MODULE=on && export GOPROXY=https://goproxy.cn,https://goproxy.io,direct && ./build.sh
|
||||
./script/build.sh
|
||||
|
||||
.PHONY: build_for_linux
|
||||
build_for_linux:
|
||||
export CGO_ENABLED=0 && export GOS=linux && ./build.sh
|
||||
export CGO_ENABLED=0 && export GOS=linux && ./script/build.sh
|
||||
|
||||
.PHONY: build_for_linux_amd64
|
||||
build_for_linux_amd64:
|
||||
export CGO_ENABLED=0 && export GOS=linux && export GOARCH=amd64 && ./build.sh
|
||||
export CGO_ENABLED=0 && export GOS=linux && export GOARCH=amd64 && ./script/build.sh
|
||||
|
||||
.PHONY: build_for_linux_arm64
|
||||
build_for_linux_arm64:
|
||||
export CGO_ENABLED=0 && export GOS=linux && export GOARCH=arm64 && ./build.sh
|
||||
export CGO_ENABLED=0 && export GOS=linux && export GOARCH=arm64 && ./script/build.sh
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
./test.sh
|
||||
|
||||
.PHONY: deps
|
||||
deps:
|
||||
go get -t -v ./...
|
||||
./script/test.sh
|
||||
|
||||
.PHONY: image
|
||||
image:
|
||||
docker build -f Dockerfile -t lal:latest .
|
||||
./script/build_docker_image.sh
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf ./bin ./lal_record ./logs coverage.txt
|
||||
find ./pkg -name 'lal_record' | xargs rm -rf
|
||||
find ./pkg -name 'logs' | xargs rm -rf
|
||||
./script/clean.sh
|
||||
|
||||
.PHONY: check_versions
|
||||
check_versions:
|
||||
./script/check_versions.sh
|
||||
|
||||
.PHONY: gen_release
|
||||
gen_release:
|
||||
./script/gen_release.sh
|
||||
|
||||
.PHONY: gen_tag
|
||||
gen_tag:
|
||||
./script/gen_tag.sh
|
||||
|
||||
.PHONY: all
|
||||
all: build test
|
||||
|
@ -1,4 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
make image
|
||||
docker run -it -p 8084:8084 -p 8080:8080 -p 1935:1935 -p 5544:5544 -p 8083:8083 lal /lal/bin/lalserver
|
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#set -x
|
||||
go env -w GO111MODULE=on
|
||||
go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct
|
||||
export GO111MODULE=on
|
||||
export GOPROXY=https://goproxy.cn,https://goproxy.io,direct
|
||||
THIS_FILE=$(readlink -f $0)
|
||||
THIS_DIR=$(dirname $THIS_FILE)
|
||||
ROOT_DIR=${THIS_DIR}/..
|
||||
|
||||
cd ${ROOT_DIR}
|
||||
docker build -f Dockerfile -t lal:latest .
|
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#set -x
|
||||
go env -w GO111MODULE=on
|
||||
go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct
|
||||
export GO111MODULE=on
|
||||
export GOPROXY=https://goproxy.cn,https://goproxy.io,direct
|
||||
THIS_FILE=$(readlink -f $0)
|
||||
THIS_DIR=$(dirname $THIS_FILE)
|
||||
ROOT_DIR=${THIS_DIR}/..
|
||||
|
||||
cd ${ROOT_DIR}
|
||||
rm -rf ./release ./bin ./lal_record ./logs coverage.txt
|
||||
find ./pkg -name 'lal_record' | xargs rm -rf
|
||||
find ./pkg -name 'logs' | xargs rm -rf
|
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#set -x
|
||||
go env -w GO111MODULE=on
|
||||
go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct
|
||||
export GO111MODULE=on
|
||||
export GOPROXY=https://goproxy.cn,https://goproxy.io,direct
|
||||
THIS_FILE=$(readlink -f $0)
|
||||
THIS_DIR=$(dirname $THIS_FILE)
|
||||
ROOT_DIR=${THIS_DIR}/..
|
||||
|
||||
cd ${ROOT_DIR}
|
||||
docker build -f Dockerfile -t lal:latest .
|
||||
docker run -it -p 8084:8084 -p 8080:8080 -p 1935:1935 -p 5544:5544 -p 8083:8083 lal /lal/bin/lalserver
|
Loading…
Reference in New Issue