remove docker folder.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2016-12-08 12:03:40 +08:00
parent 4b0be4eb5c
commit 87c44e3957
7 changed files with 1 additions and 72 deletions

View File

@@ -1,12 +0,0 @@
FROM appleboy/golang-testing
MAINTAINER Bo-Yi Wu <appleboy.tw@gmail.com>
ENV VERSION #VERSION#
RUN mkdir -p $GOPATH/src/github.com/appleboy/gorush
Add build.tar.gz $GOPATH/src/github.com/appleboy/gorush/
WORKDIR $GOPATH/src/github.com/appleboy/gorush
RUN make dep_install
RUN CGO_ENABLED=0 make build
CMD tar -C bin -czf - gorush

View File

@@ -1,9 +0,0 @@
FROM centurylink/ca-certs
EXPOSE 8088
ADD config/config.yml /
ADD gorush.tar.gz /
ENTRYPOINT ["/gorush"]
CMD ["-c", "config.yml"]

View File

@@ -1,21 +0,0 @@
version: "2"
services:
gorush:
build:
context: ./golang
args:
PROJECT_PATH: $PROJECT_PATH
links:
- redis
privileged: true
environment:
- ANDROID_API_KEY
- ANDROID_TEST_TOKEN
volumes:
- ../:$PROJECT_PATH
command: /bin/sh -c './docker/testing.sh'
redis:
build: ./redis
privileged: true

View File

@@ -1,9 +0,0 @@
FROM appleboy/golang-testing
MAINTAINER Bo-Yi Wu <appleboy.tw@gmail.com>
ARG PROJECT_PATH
ENV PROJECT_PATH=$PROJECT_PATH
WORKDIR $PROJECT_PATH

View File

@@ -1,7 +0,0 @@
FROM redis:alpine
MAINTAINER Bo-Yi Wu <appleboy.tw@gmail.com>
CMD [ "redis-server" ]
EXPOSE 6379

View File

@@ -1,13 +0,0 @@
#!/bin/sh
#
set -e
sed -i"" -e "s/localhost/redis/g" config/config.yml
sed -i"" -e "s/localhost/redis/g" config/config.go
sed -i"" -e "s/localhost/redis/g" config/config_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
echo "install package and testing code coverage."
make dep_install && coverage all