mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-25 11:03:56 +00:00
update Makefile
This commit is contained in:
parent
d697c08b02
commit
77165f22b0
1 changed files with 6 additions and 5 deletions
11
Makefile
vendored
11
Makefile
vendored
|
|
@ -2,8 +2,9 @@ dep:
|
|||
go mod download
|
||||
go mod vendor
|
||||
go mod tidy
|
||||
# NOTE: there is problem with go mod vendor when it delete github.com/gen2brain/x264-go/x264c causing unable to build. https://github.com/golang/go/issues/26366
|
||||
|
||||
build: dep
|
||||
build:
|
||||
go build -o build/cloudretro ./cmd
|
||||
|
||||
run: build
|
||||
|
|
@ -15,15 +16,15 @@ run: build
|
|||
|
||||
run-docker:
|
||||
docker build . -t cloud-game-local
|
||||
docker stop cloud-game-local
|
||||
docker rm cloud-game-local
|
||||
docker stop cloud-game-local || true
|
||||
docker rm cloud-game-local || true
|
||||
# Overlord and worker should be run separately. Local is for demo purpose
|
||||
docker run --privileged -v $PWD/games:/cloud-game/games -d --name cloud-game-local -p 8000:8000 -p 9000:9000 cloud-game-local bash -c "cmd -overlordhost ws://localhost:8000/wso & cmd -overlordhost overlord"
|
||||
docker run --privileged -v $(PWD)/games:/cloud-game/games -d --name cloud-game-local -p 8000:8000 -p 9000:9000 cloud-game-local bash -c "cmd -overlordhost ws://localhost:8000/wso & cmd -overlordhost overlord"
|
||||
|
||||
#run with vendor will be faster
|
||||
build-vendor:
|
||||
go build -o build/cloudretro -mod=vendor ./cmd
|
||||
|
||||
#run with vendor so it is faster
|
||||
run-fast: build-vendor
|
||||
./build/cloudretro -overlordhost overlord &
|
||||
./build/cloudretro -overlordhost ws://localhost:8000/wso
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue