diff --git a/Dockerfile b/Dockerfile index f1cb415..c798c21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ # ============================== BINARY BUILDER ============================== -FROM golang:1.12 as builder +FROM golang:latest as builder # Copy in the source -WORKDIR /go/src/s32x.com/tfclass +WORKDIR /go/src/s32x.com/gamedetect COPY / . # Dependencies @@ -31,7 +31,6 @@ RUN rm -f libtensorflow-cpu-linux-x86_64-1.12.0.tar.gz # Graph/Labels files COPY graph /graph -COPY test /test COPY service/static /service/static # Environment @@ -39,5 +38,5 @@ ENV LIBRARY_PATH=$LIBRARY_PATH:/usr/local/lib ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib # Binary -COPY --from=builder /go/src/s32x.com/tfclass/bin/server /usr/local/bin/server +COPY --from=builder /go/src/s32x.com/gamedetect/bin/server /usr/local/bin/server CMD ["server"] \ No newline at end of file diff --git a/Makefile b/Makefile index d68f567..2a9a39f 100644 --- a/Makefile +++ b/Makefile @@ -18,5 +18,5 @@ deploy: make clean make deps heroku container:login - heroku container:push web -a tfclass - heroku container:release web -a tfclass \ No newline at end of file + heroku container:push web -a gamedetect + heroku container:release web -a gamedetect \ No newline at end of file diff --git a/classifier/classifier.go b/classifier/classifier.go index e982f4e..342bdfd 100644 --- a/classifier/classifier.go +++ b/classifier/classifier.go @@ -4,7 +4,7 @@ // tensorhubs retrain.py // See: https://github.com/tensorflow/hub/blob/master/examples/image_retraining/retrain.py -package classifier /* import "s32x.com/tfclass/classifier" */ +package classifier /* import "s32x.com/gamedetect/classifier" */ import ( "bufio" diff --git a/classifier/classify.go b/classifier/classify.go index 6b86a04..aed5df8 100644 --- a/classifier/classify.go +++ b/classifier/classify.go @@ -1,4 +1,4 @@ -package classifier /* import "s32x.com/tfclass/classifier" */ +package classifier /* import "s32x.com/gamedetect/classifier" */ import ( "errors" diff --git a/go.mod b/go.mod index 1d690a3..e69fafd 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module s32x.com/tfclass +module s32x.com/gamedetect go 1.12 diff --git a/main.go b/main.go index c797171..209e3ac 100644 --- a/main.go +++ b/main.go @@ -1,4 +1,4 @@ -package main /* import "s32x.com/tfclass" */ +package main /* import "s32x.com/gamedetect" */ import ( "log" @@ -6,7 +6,7 @@ import ( "os" "time" - "s32x.com/tfclass/service" + "s32x.com/gamedetect/service" ) func main() { diff --git a/service/classify.go b/service/classify.go index 7149982..78d974f 100644 --- a/service/classify.go +++ b/service/classify.go @@ -1,4 +1,4 @@ -package service /* import "s32x.com/tfclass/service" */ +package service /* import "s32x.com/gamedetect/service" */ import ( "bytes" @@ -7,7 +7,7 @@ import ( "time" "github.com/labstack/echo" - "s32x.com/tfclass/classifier" + "s32x.com/gamedetect/classifier" ) // Results is a struct containing the results of a classified image diff --git a/service/index.go b/service/index.go index 3e5e587..de18ef4 100644 --- a/service/index.go +++ b/service/index.go @@ -7,7 +7,7 @@ import ( "path/filepath" "github.com/labstack/echo" - "s32x.com/tfclass/classifier" + "s32x.com/gamedetect/classifier" ) // Result is a struct containing the results of a classified image diff --git a/service/service.go b/service/service.go index dc62db3..de61c82 100644 --- a/service/service.go +++ b/service/service.go @@ -1,4 +1,4 @@ -package service /* import "s32x.com/tfclass/service" */ +package service /* import "s32x.com/gamedetect/service" */ import ( "log" @@ -8,7 +8,7 @@ import ( "github.com/labstack/echo" "github.com/labstack/echo/middleware" - "s32x.com/tfclass/classifier" + "s32x.com/gamedetect/classifier" ) // Service is a struct that contains everything needed to perform image