Skip to content

Commit bbe58f4

Browse files
authored
Merge pull request #362 from Artemkaaas/libsovtoken-0.9.7
Libsovtoken 0.9.7
2 parents 4901e95 + 65a1cc1 commit bbe58f4

File tree

110 files changed

+1752
-885
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+1752
-885
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Changelog
2+
3+
## 0.9.7
4+
* Updated logging initialization to use libindy pattern.
5+
* bugfixes
6+
27
## 0.9.3
38
* Changed CI/CD to new stable branch.
49
* CD added to the new stable branch with new stable release process

devops/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ LIBS = $(LIB_DYNAMIC) $(LIB_STATIC)
3838
# package related variables
3939
PACKAGE_NAME ?= $(LIBNAME)
4040
PRE_PACKAGE_GOALS := pre_package $(LIB_DYNAMIC)
41-
FPM_P_MAINTAINER := Evernym
42-
FPM_P_URL := https://github.com/evernym/libsovtoken
41+
FPM_P_MAINTAINER := Sovrin
42+
FPM_P_URL := https://github.com/sovrin-foundation/libsovtoken
4343
FPM_P_LICENSE := Apache License 2.0
44-
FPM_P_VENDOR := Evernym
45-
FPM_P_DESCRIPTION := libsovtoken writen in Rust
44+
FPM_P_VENDOR := Sovrin
45+
FPM_P_DESCRIPTION := libsovtoken written in Rust
4646
FPM_P_NAME = $(PACKAGE_NAME)
4747
FPM_P_VERSION ?= $(SRC_VERSION)
48-
FPM_P_DEPENDS = libindy(=1.6.8)
48+
FPM_P_DEPENDS = libindy(>=1.8.2)
4949
FPM_P_OUTPUT_DIR = $(LIB_TARGET_DIR)
5050
FPM_ARGS = $(LIB_DYNAMIC)=/usr/lib/
5151

5252
# docker related variables
53-
DOCKER_NAME ?= evernym/libsovtoken
53+
DOCKER_NAME ?= sovrin/libsovtoken
5454
LST_BASE_DOCKER_TAG ?=
5555
LST_CI_DOCKER_TAG ?=
5656
LST_ANDROID_NDK_DOCKER_TAG ?=

devops/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This folder includes devops related routine and consists of the following parts:
44
- [Makefile](Makefile) automates devops tasks like test, package and publish to [crates.io](https://crates.io/) which could be performed either on-host or in-docker
55
- [docker](docker) folder holds docker related routine
66
- [aws-codebuild](aws-codebuild) folder consists of files that describes AWS CodeBuild based CI/CD pipelines
7-
- [ext](ext) folder is a [git-subrepo][d003158e] of shared [library](https://github.com/evernym/jenkins-shared/tree/devops-shared) which provides makefile based approach of devops tasks automation. Please check its [README.md](ext/README.md) for more information.
7+
- [ext](ext) folder is a [git-subrepo][d003158e] of shared [library](https://github.com/sovrin-foundation/jenkins-shared/tree/devops-shared) which provides makefile based approach of devops tasks automation. Please check its [README.md](ext/README.md) for more information.
88

99
[d003158e]: https://github.com/ingydotnet/git-subrepo "git-subrepo"
1010

@@ -14,7 +14,7 @@ Aurora wallet is shipped with dockerfiles for ubuntu [xenial](docker/ci/xenial/D
1414

1515
## CI pipeline
1616

17-
CI pipeline is described by [Jenkinsfile.ci](aws-codebuild/Jenkinsfile.ci). It uses [Jenkins shared library](https://github.com/evernym/jenkins-shared/tree/aws-codebuild) API to build projects on [AWS CodeBuild](https://aws.amazon.com/codebuild/). CI utilizes docker containers from [docker/ci](docker/ci) folder to run tests on both ubuntu `xenial` and `centos7`.
17+
CI pipeline is described by [Jenkinsfile.ci](aws-codebuild/Jenkinsfile.ci). It uses [Jenkins shared library](https://github.com/sovrin-foundation/jenkins-shared/tree/aws-codebuild) API to build projects on [AWS CodeBuild](https://aws.amazon.com/codebuild/). CI utilizes docker containers from [docker/ci](docker/ci) folder to run tests on both ubuntu `xenial` and `centos7`.
1818

1919
CI pipeline stages:
2020
- clone the GitHub repository
@@ -29,23 +29,23 @@ CI pipeline stages:
2929

3030
## CD pipeline
3131

32-
CD pipeline is described by [Jenkinsfile.cd](aws-codebuild/Jenkinsfile.cd). It uses [Jenkins shared library](https://github.com/evernym/jenkins-shared/tree/aws-codebuild) API as well and generates the following artifacts:
32+
CD pipeline is described by [Jenkinsfile.cd](aws-codebuild/Jenkinsfile.cd). It uses [Jenkins shared library](https://github.com/sovrin-foundation/jenkins-shared/tree/aws-codebuild) API as well and generates the following artifacts:
3333
- debian package for ubuntu `xenial`
3434
- zip archive with shared and dynamic libraries for android on the following architectures: `arm`, `armv7`, `arm64`, `x86`, `x86_64`
3535

3636
CD pipeline stages:
3737
- clone the GitHub repository
3838
- resolve the following parameters:
3939
- current source version from [Cargo.toml](../libsovtoken/Cargo.toml)
40-
- last revision number among the debian packages with the same source version in [Evernym debian repo](https://repo.corp.evernym.com/deb/dists/evernym-agency-dev-ubuntu/)
40+
- last revision number among the debian packages with the same source version in [Sovrin debian repo](https://repo.sovrin.com/deb/dists/sovrin-agency-dev-ubuntu/)
4141
- evaluate new debian package version basing on source version, last revision number and current build number
4242
- upload current HEAD as zip archive to AWS S3 bucket used by CodeBuild project
4343
- launch a CodeBuild project using the same `AwsCodeBuildHelper.build` API as CI does. The main difference here is that CD pipeline doesn't build an image for AWS ECR repository assuming that it has been done previously by CI pipeline. Its sub-stages:
4444
- (optional) create/update CodeBuild project (TODO shouldn't do that in any case assuming CI did that)
4545
- run the CodeBuild project to perform debian packaging
4646
- download logs
4747
- archive logs
48-
- upload created debian package to [Evernym debian repo](https://repo.corp.evernym.com/deb/dists/evernym-agency-dev-ubuntu/)
48+
- upload created debian package to [Sovrin debian repo](https://repo.sovrin.com/deb/dists/sovrin-agency-dev-ubuntu/)
4949

5050
## Makefile
5151

@@ -91,7 +91,7 @@ Each target could be run in two ways - with or without `_in_docker` postfix: e.g
9191
| `ANDROID_ARCHS` |`package_android` | target architectures for android builds |`arm`, `armv7`, `arm64`, `x86`, `x86_64`|
9292
| `CRATE_P_VERSION` | all | if set overwrites `version` field of `[package]` section in [Cargo.toml](../libsovtoken/Cargo.toml) before crate publishing| not set |
9393
| `CARGO_LOGIN_TOKEN` | all | token to perform `cargo login` during crate publishing |not set|
94-
| `DOCKER_NAME` | all | name of the image built by `image_lst_ci` target |`evernym/libsovtoken`|
94+
| `DOCKER_NAME` | all | name of the image built by `image_lst_ci` target |`sovrin/libsovtoken`|
9595
| `DOCKER_TAG` | all | tag of the image built by `image_lst_ci` target| `<VERSION>-$(OSNAME)-ci`, where `VERSION` is value of `CI_ENV_VERSION` environment variable in accordant dockerfile |
9696

9797
Please refer to [ext/README.md](ext/README.md) for list of environment variables inherited from there

devops/android_upload.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
set -e
4+
set -x
5+
6+
if [ "$1" = "--help" ] ; then
7+
echo "Usage: <version> <key> <branchName> <number> <artifact> <artifact_name>"
8+
return
9+
fi
10+
11+
version="$1"
12+
key="$2"
13+
branchName="$3"
14+
buildNumber="$4"
15+
artifact="$5"
16+
file="$6"
17+
18+
[ -z $version ] && exit 1
19+
[ -z $key ] && exit 2
20+
[ -z $branchName ] && exit 3
21+
[ -z $buildNumber ] && exit 4
22+
[ -z $artifact ] && exit 5
23+
[ -z $file ] && exit 6
24+
25+
ssh -v -oStrictHostKeyChecking=no -i $key repo@$SOVRIN_REPO_HOST mkdir -p /var/repository/repos/android/${artifact}/${branchName}/${version}-${buildNumber}
26+
27+
cat <<EOF | sftp -v -oStrictHostKeyChecking=no -i $key repo@$SOVRIN_REPO_HOST
28+
cd /var/repository/repos/android/${artifact}/${branchName}/$version-$buildNumber
29+
put -r ${file}
30+
ls -l /var/repository/repos/android/${artifact}/${branchName}/$version-$buildNumber
31+
EOF

0 commit comments

Comments
 (0)