Merge pull request #89 from appleboy/docker

replace go path with global variable.
This commit is contained in:
Bo-Yi Wu 2016-05-20 16:48:18 +08:00
commit 8e80f4dad1
3 changed files with 5 additions and 2 deletions

View File

@ -7,7 +7,7 @@ gorush:
- ANDROID_API_KEY
- ANDROID_TEST_TOKEN
volumes:
- ../:/go/src/github.com/appleboy/gorush
- ../:/app
command: /bin/sh -c './docker/testing.sh'
redis:

View File

@ -8,4 +8,7 @@ RUN apk update \
# install glide package management.
RUN go get github.com/Masterminds/glide && cd $GOPATH/src/github.com/Masterminds/glide && make install
RUN mkdir /app && mkdir -p $GOPATH/src/github.com/appleboy
RUN ln -sf /app $GOPATH/src/github.com/appleboy/gorush
WORKDIR $GOPATH/src/github.com/appleboy/gorush

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
cd /go/src/github.com/appleboy/gorush
cd ${GOPATH}/src/github.com/appleboy/gorush
sed -i"" -e "s/localhost/redis/g" config/config.yml
sed -i"" -e "s/localhost/redis/g" gorush/status_test.go
sed -i"" -e "s/localhost/redis/g" storage/redis/redis_test.go