update run script

This commit is contained in:
giongto35 2019-05-05 21:11:37 +08:00
parent 999e2f77b6
commit b2ad4f041d
3 changed files with 6 additions and 6 deletions

8
Dockerfile vendored
View file

@ -7,13 +7,13 @@ WORKDIR /go/src/github.com/giongto35/cloud-game
# Install server dependencies
RUN apt-get update
#RUN go get github.com/gordonklaus/portaudio
#RUN apt-get install portaudio19-dev -y
RUN apt-get install pkg-config libvpx-dev libopus-dev libopusfile-dev -y
RUN go get gopkg.in/hraban/opus.v2
RUN go get github.com/pion/webrtc
RUN go get github.com/gorilla/websocket
RUN go get github.com/satori/go.uuid
RUN go install github.com/giongto35/cloud-game
RUN go get cloud.google.com/go/storage
RUN go install github.com/giongto35/cloud-game/cmd
EXPOSE 8000

View file

@ -23,7 +23,7 @@ func NewInitClient() *Client {
client, err := NewClient(projectID, bucketName)
if err != nil {
log.Printf("Err: Failed to create client: %v", err)
log.Printf("Warn: Failed to create client: %v", err)
} else {
log.Println("Online storage is initialized")
}

2
run_local.sh vendored
View file

@ -2,4 +2,4 @@
docker build . -t cloud-game-local
docker stop cloud-game-local
docker rm cloud-game-local
docker run --privileged -d --name cloud-game-local -p 8000:8000 cloud-game-local cloud-game
docker run --privileged -d --name cloud-game-local -p 8000:8000 cloud-game-local cmd -debug