Merge pull request #89 from appleboy/docker
replace go path with global variable.
This commit is contained in:
commit
8e80f4dad1
|
@ -7,7 +7,7 @@ gorush:
|
||||||
- ANDROID_API_KEY
|
- ANDROID_API_KEY
|
||||||
- ANDROID_TEST_TOKEN
|
- ANDROID_TEST_TOKEN
|
||||||
volumes:
|
volumes:
|
||||||
- ../:/go/src/github.com/appleboy/gorush
|
- ../:/app
|
||||||
command: /bin/sh -c './docker/testing.sh'
|
command: /bin/sh -c './docker/testing.sh'
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
|
|
|
@ -8,4 +8,7 @@ RUN apk update \
|
||||||
# install glide package management.
|
# install glide package management.
|
||||||
RUN go get github.com/Masterminds/glide && cd $GOPATH/src/github.com/Masterminds/glide && make install
|
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
|
WORKDIR $GOPATH/src/github.com/appleboy/gorush
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/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" config/config.yml
|
||||||
sed -i"" -e "s/localhost/redis/g" gorush/status_test.go
|
sed -i"" -e "s/localhost/redis/g" gorush/status_test.go
|
||||||
sed -i"" -e "s/localhost/redis/g" storage/redis/redis_test.go
|
sed -i"" -e "s/localhost/redis/g" storage/redis/redis_test.go
|
||||||
|
|
Loading…
Reference in New Issue