golang
go get github.com/garyburd/redigo/redis
go get github.com/go-sql-driver/mysql
go get github.com/garyburd/redigo/redis
go get github.com/gomodule/redigo/redis
go get github.com/json-iterator/go
go get github.com/aliyun/aliyun-oss-go-sdk/oss
go get gopkg.in/amz.v1/aws
go get gopkg.in/amz.v1/s3
go get github.com/streadway/amqp
go get github.com/gin-gonic/gin
go get github.com/gin-contrib/cors
go get github.com/micro/go-micro
go get github.com/mitchellh/mapstructure
go get github.com/jteeuwen/go-bindata/...
go get github.com/moxiaomomo/go-bindata-assetfs/...
go get github.com/gin-gonic/contrib/static
go get github.com/micro/go-micro/cmd
go get github.com/micro/go-plugins/registry/kubernetes
go get -v github.com/micro/go-plugins/wrapper/breaker/hystrix
go get -v github.com/juju/ratelimit
go get -v github.com/micro/go-plugins/wrapper/ratelimiter/ratelimit
golang.org/x
:
golang.org/x/net
rabbitMQ
# cd $GOPATH/<>
> cd $GOPATH/filestore-server
> go run main.go
rabbitMQ()
# cd $GOPATH/<>
> cd $GOPATH/filestore-server
> go run service/upload/main.go
- :
# cd $GOPATH/<>
> cd $GOPATH/filestore-server
> go run service/transfer/main.go
():
> cd $GOPATH/filestore-server
> ./service/start-all.sh
: service/bin/dbproxy
: service/bin/upload
: service/bin/download
: service/bin/transfer
: service/bin/account
: service/bin/apigw
dbproxy
upload
download
transfer
account
apigw
.
- (stop-all.sh):
> cd $GOPATH/filestore-server
> ./service/stop-all.sh
: apigw
: account
: transfer
: download
: upload
: dbproxy
.
> cd $GOPATH/filestore-server
#
> ./deploy/start-all.sh
#
> ./deploy/stop-all.sh
# docker-compose
> cd ./deploy/service_dc
> sudo docker-compose up -d
# k8s
> cd ./deploy/service_k8s
> kubectl apply -f svc_account.yaml
> kubectl apply -f svc_apigw.yaml
> kubectl apply -f svc_dbproxy.yaml
> kubectl apply -f svc_download.yaml
> kubectl apply -f svc_transfer.yaml
> kubectl apply -f svc_upload.yaml
> cd ./deploy/traefik_k8s
> kubectl apply -f service-ingress.yaml