You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
568 B

# Go parameters
GOCMD=GO111MODULE=on go
GOBUILD=$(GOCMD) build
GOTEST=$(GOCMD) test
VERSION=1.0.0
all: build
build:
rm -rf target/texas target/data/config.toml
mkdir -p target/data/
cp data/config.toml target/data/
$(GOBUILD) -o target/texas cmd/main.go
docker build -t texas:$(VERSION) .
clean:
rm -rf target/
run:
nohup target/texas -conf=target/data/config.toml 2>&1 > target/data/texas.log &
stop:
pkill -f target/texas
run_docker:
docker volume create texas-data
docker run -d --net host --name texas -v texas-data:/var/texas/data texas:$(VERSION)