imagemaster3000 0.2.1 → 0.3.0

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: 368e2cda89d2a393f0d950eab902b63d9ff7929a
4
- data.tar.gz: c5593b3a51382730ce904c25338deb30a8685e0c
3
+ metadata.gz: 337adf188a0e13841326d2e0d7eb0e71d8e0491c
4
+ data.tar.gz: 05371c5a3b1ee7df77478cadbd1bf5ba2061f1c6
5
5
  SHA512:
6
- metadata.gz: 8c670a87521f69e0f055c0d8d62eee44d2f68fe255077f1cc2e29359dffb10c39c097b8d889a6a31158d661e5ffa1047e5db8a152dfd1c6b8206778f76476354
7
- data.tar.gz: 91da3ca7b6cd891c3f868091dc303ceccd63a69a73eb66bd2d2fa953003a425a980423d34a5d75030f34de85506babc7978f79cfda4d77e3ac4636dff9edeb4e
6
+ metadata.gz: 389c2ed7afc7c371a924e98cfe490b6b02089d2b195f634e0c6a37a81e81718e4c0a06a863d38e604c57343f96ca87c22f170f008f7c1705e3a9f3e251796c79
7
+ data.tar.gz: 19a96e3c2d24247e8a89d2e1a0664964c937f48ac12d27ad2db9636cf946a2b2b094c1a1ba8e3c9fe0861bdfb229684f137a30d9099bd171efe996481465f0ba
@@ -0,0 +1,33 @@
1
+ version: 2
2
+ jobs:
3
+ build:
4
+ branches:
5
+ ignore:
6
+ - /.*/
7
+ docker:
8
+ - image: docker:stable
9
+ working_directory: /root/imagemaster3000
10
+ steps:
11
+ - run: apk add --no-cache git openssh
12
+ - checkout
13
+ - setup_remote_docker
14
+ - run: |
15
+ TAG=${CIRCLE_TAG#v}
16
+ BRANCH=${TAG/%.*/.x}
17
+ VERSION=${TAG}
18
+ LATEST=$(git tag --sort=-refname | head -n 1)
19
+
20
+ docker login -u $DOCKER_USER -p $DOCKER_PASS
21
+
22
+ docker build --build-arg branch=$BRANCH --build-arg version="$VERSION" -t misenko/imagemaster3000:$TAG .
23
+ docker push misenko/imagemaster3000:$TAG
24
+
25
+ if [ "$LATEST" == "$CIRCLE_TAG" ]; then
26
+ docker tag misenko/imagemaster3000:$TAG misenko/imagemaster3000:latest
27
+ docker push misenko/imagemaster3000:latest
28
+ fi
29
+ deployment:
30
+ fake_deploy_for_cci2:
31
+ tag: /v.*/
32
+ commands:
33
+ - echo "make tags run in 2.0"
data/Dockerfile ADDED
@@ -0,0 +1,48 @@
1
+ FROM ubuntu:16.04
2
+
3
+ ARG branch=master
4
+ ARG version
5
+
6
+ ENV name="imagemaster3000"
7
+ ENV spoolDir="/var/spool/${name}" \
8
+ logDir="/var/log/${name}" \
9
+ LIBGUESTFS_BACKEND="direct" \
10
+ TERM="xterm"
11
+
12
+ LABEL application=${name} \
13
+ description="Downloading and slight modification of cloud images" \
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
+ DEBIAN_FRONTEND=noninteractive apt-get --assume-yes install ruby ruby-dev libguestfs-tools linux-image-generic bzip2 gcc make
24
+
25
+ # imagemaster3000
26
+ RUN gem install ${name} -v "${version}" --no-document
27
+
28
+ # env
29
+ RUN useradd --system --shell /bin/false --home /home/${name} --create-home ${name} && \
30
+ usermod -L ${name} && \
31
+ mkdir -p ${logDir} ${spoolDir} && \
32
+ chown -R ${name}:${name} ${spoolDir} ${logDir} && \
33
+ chmod -R +r /boot
34
+
35
+ USER ${name}
36
+
37
+ # gpg keys
38
+ RUN (gpg --list-keys || true) && \
39
+ # ubuntu
40
+ gpg --recv-keys 1A5D6C4C7DB87C81 && \
41
+ # debian
42
+ gpg --recv-keys 09EA8AC3 64E6EA7D 6294BE9B && \
43
+ # centos
44
+ gpg --recv-keys F4A80EB5
45
+
46
+ VOLUME ${spoolDir}
47
+
48
+ ENTRYPOINT ["imagemaster3000"]
@@ -1,3 +1,3 @@
1
1
  module Imagemaster3000
2
- VERSION = '0.2.1'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imagemaster3000
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Kimle
@@ -262,11 +262,13 @@ executables:
262
262
  extensions: []
263
263
  extra_rdoc_files: []
264
264
  files:
265
+ - ".circleci/config.yml"
265
266
  - ".gitignore"
266
267
  - ".rspec"
267
268
  - ".rubocop.yml"
268
269
  - ".travis.yml"
269
270
  - CODE_OF_CONDUCT.md
271
+ - Dockerfile
270
272
  - Gemfile
271
273
  - LICENSE.txt
272
274
  - README.md