cloudkeeper 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +12 -15
- data/Dockerfile +1 -1
- data/README.md +5 -4
- data/examples/etc/init.d/cloudkeeper-cron +10 -0
- data/lib/cloudkeeper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a7b923d81dc5b5f94d50e099e7775f7994d0e8f
|
4
|
+
data.tar.gz: 551167065e752bbc83ff8c0d4402903a5f70f418
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17d9205bdac272454f9936230096e44058568f94998ff692ca6c6d3a3d5f1c3eb7c27cc785525bc19b0245e36e0bdded83f24dcc07c4551c55110d1d3177815a
|
7
|
+
data.tar.gz: 9d8ea1adf2e5dccfaf5f55b673d4a494d80269d4536fd64e7c72d79851f900f8abb1b1593b356d72a5d9d442d249162c4ce065d73ca396d8a6a30a50427a6ad9
|
data/.circleci/config.yml
CHANGED
@@ -2,8 +2,8 @@ version: 2
|
|
2
2
|
jobs:
|
3
3
|
build:
|
4
4
|
branches:
|
5
|
-
|
6
|
-
-
|
5
|
+
ignore:
|
6
|
+
- /.*/
|
7
7
|
docker:
|
8
8
|
- image: docker:stable
|
9
9
|
working_directory: /root/cloudkeeper
|
@@ -12,23 +12,20 @@ jobs:
|
|
12
12
|
- checkout
|
13
13
|
- setup_remote_docker
|
14
14
|
- run: |
|
15
|
-
TAG=${
|
16
|
-
BRANCH=${
|
17
|
-
VERSION
|
15
|
+
TAG=${CIRCLE_TAG#v}
|
16
|
+
BRANCH=${TAG/%.*/.x}
|
17
|
+
VERSION=${TAG}
|
18
|
+
LATEST=$(git tag --sort=-refname | head -n 1)
|
18
19
|
|
19
|
-
|
20
|
-
TAG=latest
|
21
|
-
fi
|
22
|
-
|
23
|
-
if [ -n "${CIRCLE_TAG}" ]; then
|
24
|
-
TAG=${CIRCLE_TAG#v}
|
25
|
-
BRANCH=${TAG/%.*/.x}
|
26
|
-
VERSION=${TAG}
|
27
|
-
fi
|
20
|
+
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
28
21
|
|
29
22
|
docker build --build-arg branch=$BRANCH --build-arg version="$VERSION" -t cloudkeeper/cloudkeeper:$TAG .
|
30
|
-
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
31
23
|
docker push cloudkeeper/cloudkeeper:$TAG
|
24
|
+
|
25
|
+
if [ "$LATEST" == "$CIRCLE_TAG" ]; then
|
26
|
+
docker tag cloudkeeper/cloudkeeper:$TAG cloudkeeper/cloudkeeper:latest
|
27
|
+
docker push cloudkeeper/cloudkeeper:latest
|
28
|
+
fi
|
32
29
|
deployment:
|
33
30
|
fake_deploy_for_cci2:
|
34
31
|
tag: /v.*/
|
data/Dockerfile
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
# cloudkeeper
|
2
2
|
cloudkeeper is an AppDB <-> cloud synchronization utility
|
3
3
|
|
4
|
-
[![
|
5
|
-
[![
|
6
|
-
[![Gem
|
7
|
-
[![Code Climate](https://
|
4
|
+
[![Travis](https://img.shields.io/travis/the-cloudkeeper-project/cloudkeeper.svg?style=flat-square)](http://travis-ci.org/the-cloudkeeper-project/cloudkeeper)
|
5
|
+
[![Gemnasium](https://img.shields.io/gemnasium/the-cloudkeeper-project/cloudkeeper.svg?style=flat-square)](https://gemnasium.com/the-cloudkeeper-project/cloudkeeper)
|
6
|
+
[![Gem](https://img.shields.io/gem/v/cloudkeeper.svg?style=flat-square)](https://rubygems.org/gems/cloudkeeper)
|
7
|
+
[![Code Climate](https://img.shields.io/codeclimate/github/the-cloudkeeper-project/cloudkeeper.svg?style=flat-square)](https://codeclimate.com/github/the-cloudkeeper-project/cloudkeeper)
|
8
|
+
[![DockerHub](https://img.shields.io/badge/docker-ready-blue.svg?style=flat-square)](https://hub.docker.com/r/cloudkeeper/cloudkeeper/)
|
8
9
|
|
9
10
|
## What does cloudkeeper do?
|
10
11
|
cloudkeeper is able to read image lists provided by EGI AppDB, parse their content and decide what cloud appliances should be added, updated or removed from managed cloud. During the addition and update cloudkeeper is able to download an appliance's image and convert it to the format supported by the managed cloud.
|
@@ -14,7 +14,17 @@ lockfile="/var/lock/cloudkeeper-cron"
|
|
14
14
|
retval=0
|
15
15
|
name=`basename $0`
|
16
16
|
|
17
|
+
run_dir="/var/run/cloudkeeper"
|
18
|
+
lock_dir="/var/lock/cloudkeeper"
|
19
|
+
user="cloudkeeper"
|
20
|
+
|
21
|
+
setup_dirs() {
|
22
|
+
mkdir -p "$run_dir" "$lock_dir"
|
23
|
+
chown "$user":"$user" "$run_dir" "$lock_dir"
|
24
|
+
}
|
25
|
+
|
17
26
|
start() {
|
27
|
+
setup_dirs
|
18
28
|
touch $lockfile
|
19
29
|
echo "Enabling periodic $name"
|
20
30
|
retval=0
|
data/lib/cloudkeeper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudkeeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michal Kimle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|