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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b68f4e4bb882318c02878608479323a196857f2e
4
- data.tar.gz: 13b08b1aae43eb6858fa726ebfe782644b72e681
3
+ metadata.gz: 8a7b923d81dc5b5f94d50e099e7775f7994d0e8f
4
+ data.tar.gz: 551167065e752bbc83ff8c0d4402903a5f70f418
5
5
  SHA512:
6
- metadata.gz: c16beb7fe52106c8987ab873fd3c4be88883d3e830f08aadf3e30a8b7fe12ee15c0c0fb9f91e071e7841e01591493ce385fb325ed5a24a24b63ce6f0fb7bf9d1
7
- data.tar.gz: fae35d54048e43b15d0cdc472aa98cf973bfab70322d7610f55018fd077ec4a16560129b947e4804bf9153016b23216b378f78abed6722de6684ef072ad17b89
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
- only:
6
- - master
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=${CIRCLE_BRANCH}
16
- BRANCH=${CIRCLE_BRANCH}
17
- VERSION=">= 0"
15
+ TAG=${CIRCLE_TAG#v}
16
+ BRANCH=${TAG/%.*/.x}
17
+ VERSION=${TAG}
18
+ LATEST=$(git tag --sort=-refname | head -n 1)
18
19
 
19
- if [ "${TAG}" == "master" ]; then
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
@@ -44,7 +44,7 @@ RUN useradd --system --shell /bin/false --home ${spoolDir} --create-home ${name}
44
44
 
45
45
  VOLUME ${imgDir}
46
46
 
47
- EXPOSE 7300-7400
47
+ EXPOSE 50505
48
48
 
49
49
  USER ${name}
50
50
 
data/README.md CHANGED
@@ -1,10 +1,11 @@
1
1
  # cloudkeeper
2
2
  cloudkeeper is an AppDB <-> cloud synchronization utility
3
3
 
4
- [![Build Status](https://secure.travis-ci.org/the-cloudkeeper-project/cloudkeeper.png)](http://travis-ci.org/the-cloudkeeper-project/cloudkeeper)
5
- [![Dependency Status](https://gemnasium.com/the-cloudkeeper-project/cloudkeeper.png)](https://gemnasium.com/the-cloudkeeper-project/cloudkeeper)
6
- [![Gem Version](https://fury-badge.herokuapp.com/rb/cloudkeeper.png)](https://badge.fury.io/rb/cloudkeeper)
7
- [![Code Climate](https://codeclimate.com/github/the-cloudkeeper-project/cloudkeeper.png)](https://codeclimate.com/github/the-cloudkeeper-project/cloudkeeper)
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
@@ -1,3 +1,3 @@
1
1
  module Cloudkeeper
2
- VERSION = '1.3.0'.freeze
2
+ VERSION = '1.3.1'.freeze
3
3
  end
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.0
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-18 00:00:00.000000000 Z
11
+ date: 2017-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler