mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-22 09:37:09 +00:00
update run script
This commit is contained in:
parent
999e2f77b6
commit
b2ad4f041d
3 changed files with 6 additions and 6 deletions
8
Dockerfile
vendored
8
Dockerfile
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
2
run_local.sh
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue