replace go path with global variable.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
349099fcf6
commit
12505bd17d
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue