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

Commit

Permalink
Merge pull request #7 from datatogether/ipfs_add_collection
Browse files Browse the repository at this point in the history
Ipfs add collection
  • Loading branch information
b5 authored Jul 14, 2017
2 parents 1454153 + 76f8d37 commit a724f49
Show file tree
Hide file tree
Showing 260 changed files with 80,369 additions and 406 deletions.
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 datatogether/task-mgmt:latest -t datatogether/task-mgmt:$TAG .
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push datatogether/task-mgmt:$TAG
docker push datatogether/task-mgmt:latest
if [ $CIRCLE_BRANCH = 'master' ]; then
TAG=0.1.$CIRCLE_BUILD_NUM
docker build -t datatogether/task-mgmt:latest -t datatogether/task-mgmt:$TAG .
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push datatogether/task-mgmt:$TAG
docker push datatogether/task-mgmt:latest
fi
208 changes: 205 additions & 3 deletions Godeps/Godeps.json

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

3 changes: 2 additions & 1 deletion accept_tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import (
)

func configureTasks() {
tasks.RegisterTaskdef("ipfs.add", ipfs.NewTaskAdd)
tasks.RegisterTaskdef("ipfs.addurl", ipfs.NewTaskAdd)
tasks.RegisterTaskdef("ipfs.addcollection", ipfs.NewAddCollection)
tasks.RegisterTaskdef("kiwix.updateSources", kiwix.NewTaskUpdateSources)

// Must set api server url to make ipfs tasks work
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package main
import (
"database/sql"
"fmt"
"github.com/archivers-space/sqlutil"
"github.com/datatogether/sql_datastore"
"github.com/datatogether/sqlutil"
"github.com/datatogether/task-mgmt/source"
"github.com/datatogether/task-mgmt/tasks"
"github.com/sirupsen/logrus"
Expand Down
Loading

0 comments on commit a724f49

Please sign in to comment.