File tree Expand file tree Collapse file tree 9 files changed +510
-41
lines changed Expand file tree Collapse file tree 9 files changed +510
-41
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,10 +3,16 @@ module github.com/bcspragu/Codenames
3
3
go 1.13
4
4
5
5
require (
6
+ cloud.google.com/go v0.80.0
6
7
code.sajari.com/word2vec v1.0.0
7
- github.com/google/go-cmp v0.4.0
8
+ github.com/google/go-cmp v0.5.5
8
9
github.com/gorilla/mux v1.7.3
9
10
github.com/gorilla/securecookie v1.1.1
10
11
github.com/gorilla/websocket v1.4.1
12
+ github.com/mattn/go-sqlite3 v1.14.6
13
+ github.com/namsral/flag v1.7.4-pre
11
14
github.com/ziutek/blas v0.0.0-20190227122918-da4ca23e90bb // indirect
15
+ golang.org/x/net v0.0.0-20210326220855-61e056675ecf
16
+ google.golang.org/api v0.43.0
17
+ google.golang.org/genproto v0.0.0-20210325224202-eed09b1b5210
12
18
)
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
1
# /bin/bash
2
- realize start --name=" codenames-server"
2
+
3
+ if ! systemctl is-active --user --quiet docker.service; then
4
+ echo " Docker isn't running"
5
+ exit 1
6
+ fi
7
+
8
+ DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
9
+
10
+ nsenter \
11
+ -U --preserve-credentials -n -m --wd=" $DIR " \
12
+ -t " $( cat $XDG_RUNTIME_DIR /docker.pid) " \
13
+ go run github.com/bcspragu/Codenames/cmd/codenames-server
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -e
3
+
4
+ DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
5
+
2
6
docker run --rm -it \
3
7
-w /project \
4
- --net=host \
5
- --volume $PWD :/project \
6
- --user $( id -u) :$( id -g) \
8
+ --mount type=bind,source=$DIR ,destination=/project \
7
9
node:alpine yarn build
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -e
3
+
4
+ DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
5
+
2
6
docker run --rm -it \
3
7
-w /project \
4
- --net=host \
5
- --volume $PWD :/project \
6
- --user $( id -u) :$( id -g) \
8
+ --mount type=bind,source=$DIR ,destination=/project \
7
9
node:alpine /bin/sh
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -e
3
+
4
+ DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
5
+
2
6
docker run --rm -it \
3
7
-w /project \
4
- --net=host \
5
- --volume $PWD :/project \
6
- --user $( id -u) :$( id -g) \
8
+ --mount type=bind,source=$DIR ,destination=/project \
7
9
node:alpine yarn
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -e
3
+
4
+ DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
5
+
2
6
docker run --rm -it \
3
7
-w /project \
4
- --net=host \
5
- --volume $PWD :/project \
6
- --user $( id -u) :$( id -g) \
8
+ -p 8081:8081 \
9
+ --mount type=bind,source=$DIR ,destination=/project \
7
10
node:alpine yarn serve
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ module.exports = {
4
4
port : 8081 ,
5
5
proxy : {
6
6
'/api/' : {
7
- target : 'http://localhost :8080' ,
7
+ target : 'http://172.17.0.1 :8080' ,
8
8
} ,
9
9
}
10
10
}
You can’t perform that action at this time.
0 commit comments