Skip to content
This repository was archived by the owner on Nov 5, 2019. It is now read-only.

Rpc #10

Merged
merged 4 commits into from
Jun 6, 2017
Merged

Rpc #10

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,20 @@ jobs:
- run:
name: Install Docker client
command: |
set -x
VER="17.03.0-ce"
curl -L -o /tmp/docker-$VER.tgz https://get.docker.com/builds/Linux/x86_64/docker-$VER.tgz
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
mv /tmp/docker/* /usr/bin
if [ $CIRCLE_BRANCH = 'master' ]; then
set -x
VER="17.03.0-ce"
curl -L -o /tmp/docker-$VER.tgz https://get.docker.com/builds/Linux/x86_64/docker-$VER.tgz
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
mv /tmp/docker/* /usr/bin
fi
- run:
name: Publish to Docker Hub
command: |
TAG=0.1.$CIRCLE_BUILD_NUM
docker build -t archivers/coverage:latest -t archivers/coverage:$TAG .
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push archivers/coverage:$TAG
docker push archivers/coverage:latest
if [ $CIRCLE_BRANCH = 'master' ]; then
TAG=0.1.$CIRCLE_BUILD_NUM
docker build -t archivers/coverage:latest -t archivers/coverage:$TAG .
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push archivers/coverage:$TAG
docker push archivers/coverage:latest
fi
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ EXPOSE 3000
# RUN go-wrapper install github.com/codegangsta/gin

# Copy the local package files to the container’s workspace.
ADD . /go/src/github.com/archivers-space/content
# WORKDIR /go/src/github.com/archivers-space/content
ADD . /go/src/github.com/archivers-space/coverage
# WORKDIR /go/src/github.com/archivers-space/coverage
# CMD ["gin", "-i"]

# Install api binary globally within container
RUN go install github.com/archivers-space/content
RUN go install github.com/archivers-space/coverage
# Set binary as entrypoint
ENTRYPOINT /go/bin/content
ENTRYPOINT /go/bin/coverage



14 changes: 13 additions & 1 deletion Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading