cloudkeeper-one 1.2.0 → 1.2.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: 2addc69f939c5497397accddbf6900526a21e402
4
- data.tar.gz: 7f1d72b372c871774198b73320914b76f3b37008
3
+ metadata.gz: 92aa8221e36dd33e28b815f3a464a1460ffe2a28
4
+ data.tar.gz: b1ea8271f82491978a0fac21c460339820ae97f7
5
5
  SHA512:
6
- metadata.gz: 4e49c53da9aed9a46713c1cc89195a16c7005424a1cfc4816d12285aca4f59e1290ba8477e01a30a4c50a138315f8de21f5200087b966127d170f6c1e904e19e
7
- data.tar.gz: e92811e8d5d75f193b7d896c9ea7f4f04d2f40216b93f7c190d30e3e724da03ad13747f0532702334c0e92572208b2cf12963fbc1ce5a674e681aad2731d5d11
6
+ metadata.gz: 5444b941f1256ee04f66de3bae0e3c41bbf88972e5a285cb668597c7ce8fd487401eb5d254352ffa1f1ed46d014e458c83ec248cd31727cc0bcd44e4a5bafb0a
7
+ data.tar.gz: 2fab4ba1b21ddf5d6f35396458821fd69c330de012042e136ada11167df1f7b1722c14141c433e81e5637f56b495a52b39cdb3cbfddd1c7b8ff437e98bdcac35
@@ -0,0 +1,36 @@
1
+ version: 2
2
+ jobs:
3
+ build:
4
+ branches:
5
+ only:
6
+ - master
7
+ docker:
8
+ - image: docker:stable
9
+ working_directory: /root/cloudkeeper-one
10
+ steps:
11
+ - run: apk add --no-cache git openssh
12
+ - checkout
13
+ - setup_remote_docker
14
+ - run: |
15
+ TAG=${CIRCLE_BRANCH}
16
+ BRANCH=${CIRCLE_BRANCH}
17
+ VERSION=">= 0"
18
+
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
28
+
29
+ docker build --build-arg branch=$BRANCH --build-arg version="$VERSION" -t cloudkeeper/cloudkeeper-one:$TAG .
30
+ docker login -u $DOCKER_USER -p $DOCKER_PASS
31
+ docker push cloudkeeper/cloudkeeper-one:$TAG
32
+ deployment:
33
+ fake_deploy_for_cci2:
34
+ tag: /v.*/
35
+ commands:
36
+ - echo "make tags run in 2.0"
data/Dockerfile ADDED
@@ -0,0 +1,40 @@
1
+ FROM ubuntu:16.04
2
+
3
+ ARG branch=master
4
+ ARG version
5
+
6
+ ENV name="cloudkeeper-one" \
7
+ username="cloudkeeper"
8
+ ENV spoolDir="/var/spool/${username}"
9
+ ENV applDir="${spoolDir}/appliances" \
10
+ logDir="/var/log/${username}"
11
+
12
+ LABEL application=${name} \
13
+ description="A tool for synchronizing appliances between cloudkeeper and OpenNebula" \
14
+ maintainer="kimle@cesnet.cz" \
15
+ version=${version} \
16
+ branch=${branch}
17
+
18
+ SHELL ["/bin/bash", "-c"]
19
+
20
+ # update + dependencies
21
+ RUN apt-get update && \
22
+ apt-get --assume-yes upgrade && \
23
+ apt-get --assume-yes install ruby ruby-dev zlib1g-dev gcc patch make
24
+
25
+ # cloudkeeper-one
26
+ RUN gem install ${name} -v "${version}" --no-document
27
+
28
+ # env
29
+ RUN useradd --system --shell /bin/false --home ${spoolDir} --create-home ${username} && \
30
+ usermod -L ${username} && \
31
+ mkdir -p ${applDir} ${logDir} && \
32
+ chown -R ${username}:${username} ${spoolDir} ${logDir}
33
+
34
+ VOLUME ${applDir}
35
+
36
+ EXPOSE 50051
37
+
38
+ USER ${username}
39
+
40
+ ENTRYPOINT ["cloudkeeper-one"]
@@ -41,7 +41,7 @@ Gem::Specification.new do |spec|
41
41
  spec.add_development_dependency 'pry', '~> 0.10'
42
42
  spec.add_development_dependency 'pry-byebug', '~> 3.4'
43
43
  spec.add_development_dependency 'vcr', '~> 3.0'
44
- spec.add_development_dependency 'webmock', '~> 2.1'
44
+ spec.add_development_dependency 'webmock', '~> 3.0'
45
45
  spec.add_development_dependency 'grpc-tools', '~> 1.0'
46
46
 
47
47
  spec.add_runtime_dependency 'thor', '~> 0.19'
@@ -6,9 +6,9 @@ DESCRIPTION = "<%= "#{appliance.title} - #{appliance.description}" %>"
6
6
  DESCRIPTION = "<%= appliance.title %>"
7
7
  <% end %>
8
8
 
9
- MEMORY = "<%= appliance.ram || 1024 %>"
10
- CPU = "<%= appliance.core || 0.25 %>"
11
- VCPU = "<%= appliance.core || 1 %>"
9
+ MEMORY = "<%= appliance.ram != 0 ? appliance.ram : 1024 %>"
10
+ CPU = "<%= appliance.core != 0 ? appliance.core : 0.25 %>"
11
+ VCPU = "<%= appliance.core != 0 ? appliance.core : 1 %>"
12
12
 
13
13
  OS = [
14
14
  ARCH = "<%= appliance.architecture || "x86_64" %>"
@@ -1,5 +1,5 @@
1
1
  module Cloudkeeper
2
2
  module One
3
- VERSION = '1.2.0'.freeze
3
+ VERSION = '1.2.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudkeeper-one
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.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-04 00:00:00.000000000 Z
11
+ date: 2017-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '2.1'
159
+ version: '3.0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '2.1'
166
+ version: '3.0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: grpc-tools
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -298,12 +298,14 @@ executables:
298
298
  extensions: []
299
299
  extra_rdoc_files: []
300
300
  files:
301
+ - ".circleci/config.yml"
301
302
  - ".gitignore"
302
303
  - ".gitmodules"
303
304
  - ".rspec"
304
305
  - ".rubocop.yml"
305
306
  - ".travis.yml"
306
307
  - CODE_OF_CONDUCT.md
308
+ - Dockerfile
307
309
  - Gemfile
308
310
  - LICENSE.txt
309
311
  - README.md