safedb 0.10.12 → 0.10.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +2 -0
- data/Jenkinsfile +3 -41
- data/lib/version.rb +1 -1
- metadata +1 -3
- data/Dockerfile +0 -57
- data/pod-image-build.yaml +0 -27
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e789d2c5402dfa894b1d29f52133b0eda76b628f64c98462cf8687a61eb55048
|
|
4
|
+
data.tar.gz: b3a47e58b5d9d94f053a607752a00eca0f8a9a094a430d2547d735073e05992e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e11ce1052317d1e8b93a77c029024589b8c129843f71f38c8c61301cf9690925b6c4c481f1611542d3cdfae1c756e6a49167708424a5bb541feae39898d848e
|
|
7
|
+
data.tar.gz: 24f1b871e41b913d3d51078c853e669d7ca32705f0e282d4e6464ae73d9325ae9ebf8054ecf6ffaf8d09cd619bb6aea6a2f8c8ff299a88f725da754537fdeb29
|
data/CONTRIBUTING.md
CHANGED
|
@@ -108,6 +108,8 @@ Now when releasing we eject the file back into **`~/.gem/credentials`**, secure
|
|
|
108
108
|
|
|
109
109
|
### `gem bump patch --tag --push --release --file=$PWD/lib/version.rb`
|
|
110
110
|
|
|
111
|
+
### `gem bump patch --tag --push --file=$PWD/lib/version.rb`
|
|
112
|
+
|
|
111
113
|
The gem bump (and release) command bumps up the patch (or major or minor) version, tags the repository, pushes the changes and releases to rubygems.org
|
|
112
114
|
|
|
113
115
|
## Common Development Commands
|
data/Jenkinsfile
CHANGED
|
@@ -3,54 +3,23 @@ pipeline
|
|
|
3
3
|
agent none
|
|
4
4
|
stages
|
|
5
5
|
{
|
|
6
|
-
/*
|
|
7
|
-
stage('Maybe Skip Build')
|
|
8
|
-
{
|
|
9
|
-
agent any
|
|
10
|
-
steps
|
|
11
|
-
{
|
|
12
|
-
scmSkip(deleteBuild: false, skipPattern:'.*\\[skip ci\\].*')
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
*/
|
|
17
|
-
/*
|
|
18
|
-
stage('Build Safe Docker Image')
|
|
19
|
-
{
|
|
20
|
-
agent
|
|
21
|
-
{
|
|
22
|
-
kubernetes
|
|
23
|
-
{
|
|
24
|
-
defaultContainer 'kaniko'
|
|
25
|
-
yamlFile 'pod-image-build.yaml'
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
steps
|
|
29
|
-
{
|
|
30
|
-
checkout scm
|
|
31
|
-
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --destination devops4me/haven:latest --cleanup'
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
*/
|
|
35
|
-
/*
|
|
36
6
|
stage('Reek Static Code Analysis')
|
|
37
7
|
{
|
|
38
8
|
agent
|
|
39
9
|
{
|
|
40
10
|
kubernetes
|
|
41
11
|
{
|
|
42
|
-
yamlFile 'pod-image-
|
|
12
|
+
yamlFile 'pod-image-test.yaml'
|
|
43
13
|
}
|
|
44
14
|
}
|
|
45
15
|
steps
|
|
46
16
|
{
|
|
47
|
-
container('
|
|
17
|
+
container('safehaven')
|
|
48
18
|
{
|
|
49
19
|
sh 'reek lib || true'
|
|
50
20
|
}
|
|
51
21
|
}
|
|
52
22
|
}
|
|
53
|
-
*/
|
|
54
23
|
stage('Cucumber Aruba Tests')
|
|
55
24
|
{
|
|
56
25
|
agent
|
|
@@ -85,13 +54,6 @@ pipeline
|
|
|
85
54
|
container('safehaven')
|
|
86
55
|
{
|
|
87
56
|
checkout scm
|
|
88
|
-
sh 'git status'
|
|
89
|
-
sh 'git remote -v'
|
|
90
|
-
sh 'pwd'
|
|
91
|
-
sh 'ls -lah'
|
|
92
|
-
sh 'ls -lah $HOME/gitsshconfig'
|
|
93
|
-
sh 'ls -lah $HOME/gitsshkey'
|
|
94
|
-
sh 'cat $HOME/gitsshconfig/config'
|
|
95
57
|
sh 'mkdir -p $HOME/.ssh && cp $HOME/gitsshconfig/config $HOME/.ssh/config'
|
|
96
58
|
sh 'mkdir -p $HOME/.gem && cp $HOME/gemcredentials/credentials $HOME/.gem/credentials'
|
|
97
59
|
sh 'chmod 0600 $HOME/.gem/credentials'
|
|
@@ -100,7 +62,7 @@ pipeline
|
|
|
100
62
|
sh 'ssh -i $HOME/gitsshkey/safedb.code.private.key.pem -vT git@safedb.code || true'
|
|
101
63
|
sh 'git remote set-url --push origin git@safedb.code:devops4me/safedb.net.git'
|
|
102
64
|
sh 'git branch && git checkout master'
|
|
103
|
-
sh 'gem bump minor --
|
|
65
|
+
sh 'gem bump minor --release --file=$PWD/lib/version.rb'
|
|
104
66
|
}
|
|
105
67
|
}
|
|
106
68
|
}
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: safedb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.10.
|
|
4
|
+
version: 0.10.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Apollo Akora
|
|
@@ -94,7 +94,6 @@ files:
|
|
|
94
94
|
- ".gitignore"
|
|
95
95
|
- ".yardopts"
|
|
96
96
|
- CONTRIBUTING.md
|
|
97
|
-
- Dockerfile
|
|
98
97
|
- Gemfile
|
|
99
98
|
- Jenkinsfile
|
|
100
99
|
- LICENSE
|
|
@@ -222,7 +221,6 @@ files:
|
|
|
222
221
|
- lib/utils/time/timestamp.rb
|
|
223
222
|
- lib/version.rb
|
|
224
223
|
- pkg/README.md
|
|
225
|
-
- pod-image-build.yaml
|
|
226
224
|
- pod-image-release.yaml
|
|
227
225
|
- pod-image-test.yaml
|
|
228
226
|
- safedb.gemspec
|
data/Dockerfile
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
FROM ruby:latest
|
|
2
|
-
|
|
3
|
-
# --->
|
|
4
|
-
# ---> install the gems necessary to build test package and
|
|
5
|
-
# ---> release this ruby project.
|
|
6
|
-
# --->
|
|
7
|
-
|
|
8
|
-
RUN gem install gem-release cucumber aruba yard reek
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
# --->
|
|
12
|
-
# ---> Create a non-root user from which cucumber and aruba
|
|
13
|
-
# ---> orchestrate and validate command line behaviour.
|
|
14
|
-
# --->
|
|
15
|
-
|
|
16
|
-
# --------------------------> RUN adduser --home /home/safeci --shell /bin/bash --gecos 'Safe TTY Test User' safeci && \
|
|
17
|
-
# --------------------------> install -d -m 755 -o safeci -g safeci /home/safeci
|
|
18
|
-
|
|
19
|
-
# --------------------------> RUN chown -R safeci:safeci /home/safeci
|
|
20
|
-
|
|
21
|
-
# --->
|
|
22
|
-
# --->
|
|
23
|
-
# ---> As the safeci user employ cucumber and aruba to recursively
|
|
24
|
-
# ---> find and execute all cucumber (*.feature) files under lib.
|
|
25
|
-
# --->
|
|
26
|
-
|
|
27
|
-
# --------------------------> USER safeci
|
|
28
|
-
# --------------------------> WORKDIR /home/safeci/code
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
# ----------------->
|
|
35
|
-
# ----------------->
|
|
36
|
-
# -----------------> The plan is to replace above safeci wity rubyist (chemist, scientist, dentist)
|
|
37
|
-
# -----------------> and let Dockerhub build the image as it is now global to ruby projects.
|
|
38
|
-
# ----------------->
|
|
39
|
-
# ----------------->
|
|
40
|
-
# ----------------->
|
|
41
|
-
|
|
42
|
-
# --->
|
|
43
|
-
# ---> Copy the project assets into the docker image.
|
|
44
|
-
# --->
|
|
45
|
-
|
|
46
|
-
# -----------------> COPY . /home/safeci/code/
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
# --->
|
|
50
|
-
# ---> Use rake to Copy the project assets into the docker image.
|
|
51
|
-
# --->
|
|
52
|
-
|
|
53
|
-
# -----------------> RUN chown -R safeci:safeci /home/safeci && \
|
|
54
|
-
# -----------------> cd /home/safeci/code && \
|
|
55
|
-
# -----------------> rake install
|
|
56
|
-
|
|
57
|
-
|
data/pod-image-build.yaml
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# This kubernetes pod template instantiates a slave (JNLP) sidecar container
|
|
2
|
-
# for Jenkins master slave communications and the Google Kaniko container for
|
|
3
|
-
# building docker images without demanding privileged docker in/out access.
|
|
4
|
-
---
|
|
5
|
-
kind: Pod
|
|
6
|
-
metadata:
|
|
7
|
-
name: kaniko
|
|
8
|
-
spec:
|
|
9
|
-
containers:
|
|
10
|
-
- name: jnlp
|
|
11
|
-
image: jenkins/jnlp-slave:latest
|
|
12
|
-
- name: kaniko
|
|
13
|
-
image: gcr.io/kaniko-project/executor:debug
|
|
14
|
-
imagePullPolicy: Always
|
|
15
|
-
volumeMounts:
|
|
16
|
-
- name: regcredsvolume
|
|
17
|
-
mountPath: /kaniko/.docker
|
|
18
|
-
command:
|
|
19
|
-
- /busybox/sh
|
|
20
|
-
- "-c"
|
|
21
|
-
args:
|
|
22
|
-
- /busybox/cat
|
|
23
|
-
tty: true
|
|
24
|
-
volumes:
|
|
25
|
-
- name: regcredsvolume
|
|
26
|
-
secret:
|
|
27
|
-
secretName: registrycreds
|