Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intergration env support #283

Open
wants to merge 69 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
2b0ad66
feat(): init mediator integration environment setup
Christiantyemele Nov 18, 2024
c0126bf
feat(): polish intergration evironment
Christiantyemele Nov 19, 2024
9e812b1
Merge branch 'main' of https://github.com/adorsys/didcomm-mediator-rs…
Christiantyemele Nov 19, 2024
8f790a3
fix(): fix on reviews
Christiantyemele Nov 20, 2024
85dd48a
update(intergration environment): added more description to doc
Christiantyemele Nov 25, 2024
ed3b710
Merge branch 'main' of https://github.com/adorsys/didcomm-mediator-rs…
Christiantyemele Nov 28, 2024
fccc753
merged main into intergration environment
Christiantyemele Nov 28, 2024
1b70cc0
feat(): init kubernetes setup
Christiantyemele Nov 29, 2024
805f954
feat(): Polish k8s integration environment
Christiantyemele Dec 2, 2024
1ef2f73
fix(): moved k8s folder
Christiantyemele Dec 3, 2024
605bfd5
feat(): publishing docker containers to ghcr with action
Christiantyemele Dec 3, 2024
0a62147
feat(): added workflow file for ghcr
Christiantyemele Dec 3, 2024
6d4dd79
update yml
Christiantyemele Dec 3, 2024
10d9a79
update(release): updated release with compose
Christiantyemele Dec 3, 2024
a0e12ff
update release.yml
Christiantyemele Dec 3, 2024
8fa870c
feat(): updated workflow
Christiantyemele Dec 3, 2024
6b85b63
update changed pcakage version version
Christiantyemele Dec 3, 2024
9642d2e
update workflow verification
Christiantyemele Dec 3, 2024
22a7e5f
feat(package): update config
Christiantyemele Dec 3, 2024
12927bd
updated pacakage
Christiantyemele Dec 3, 2024
420e1c0
fix(package): typos fix
Christiantyemele Dec 4, 2024
7a68793
fix(package): correcting yaml
Christiantyemele Dec 4, 2024
165516d
fix(): typos fix
Christiantyemele Dec 4, 2024
6fc8251
fix(): added path env for compose
Christiantyemele Dec 4, 2024
5f9bf20
fix(): removed env form .gitignore
Christiantyemele Dec 4, 2024
4d5998e
fix(): updated compose
Christiantyemele Dec 4, 2024
93db614
fix(package): fixing mediator package
Christiantyemele Dec 4, 2024
d507fa6
fix(package): added env path
Christiantyemele Dec 4, 2024
426a1a7
fix(package): changed branch for action
Christiantyemele Dec 4, 2024
7a35312
fix(): update .env
Christiantyemele Dec 4, 2024
a2425c8
fix(): debugging yml
Christiantyemele Dec 4, 2024
0085807
fix(): updated yml
Christiantyemele Dec 4, 2024
26997ea
fix(): update yml
Christiantyemele Dec 4, 2024
abbe3b0
fix(): handled error when reading env
Christiantyemele Dec 5, 2024
3870bf0
fix(global): updated configs for packaging
Christiantyemele Dec 5, 2024
1b22c59
fix(): update package.yml
Christiantyemele Dec 5, 2024
355563f
updat(): updated package.yml
Christiantyemele Dec 5, 2024
723c8ae
fix(): removed port specification form compose
Christiantyemele Dec 5, 2024
99ec932
Merge branch '245-integration-environment-for-didcomm-mediator-server…
Christiantyemele Dec 5, 2024
b0060b0
fix(): update mongodb automatcic resolution
Christiantyemele Dec 5, 2024
d93060b
update(): modified MONGO_URI
Christiantyemele Dec 5, 2024
b1b8bfe
update(): updated env
Christiantyemele Dec 5, 2024
228f25b
update yaml
Christiantyemele Dec 5, 2024
b1102d3
feat(): update yaml
Christiantyemele Dec 5, 2024
f90bb1f
fix(): env path adjustment
Christiantyemele Dec 6, 2024
ed412d2
fix(): changed database url
Christiantyemele Dec 6, 2024
0e59816
fix(): update .env
Christiantyemele Dec 6, 2024
d52b96f
modified .env
Christiantyemele Dec 6, 2024
a8a11e0
fix(): Updated yaml
Christiantyemele Dec 6, 2024
f299970
fix(): modified yaml to use compose
Christiantyemele Dec 6, 2024
c74694e
update(): env
Christiantyemele Dec 6, 2024
13f6426
fix(polish): updated compose
Christiantyemele Dec 6, 2024
3b37136
fix(): polish intergration environment
Christiantyemele Dec 6, 2024
6185c24
fix(): update to dockerfile
Christiantyemele Dec 6, 2024
e7649d1
fix(): updated dockerfile
Christiantyemele Dec 6, 2024
1e437d3
fix(): updated yaml
Christiantyemele Dec 6, 2024
74e898e
feat(): helm init
Christiantyemele Dec 10, 2024
8c0f026
feat(): polish helm setup
Christiantyemele Dec 11, 2024
2f2ce80
fix(): runing workflow
Christiantyemele Dec 11, 2024
3699500
fix(): updated values file
Christiantyemele Dec 11, 2024
703dcea
feat(polish): deployment environment
Christiantyemele Dec 11, 2024
624e8da
feat(): polish deployment environment
Christiantyemele Dec 16, 2024
1d64f67
feat(): addressed reviews
Christiantyemele Dec 16, 2024
2cfc7d0
feat(): updated host deployment
Christiantyemele Dec 17, 2024
9360723
fix(): added ssl/tls to deployment
Christiantyemele Dec 20, 2024
071044f
feat(): image refactor for faster build time
Christiantyemele Jan 6, 2025
552787a
Merge branch 'main' into intergration-env-support
Christiantyemele Jan 6, 2025
33b6453
feat():refactor on image
Christiantyemele Jan 6, 2025
e96ffbc
Merge branch 'intergration-env-support' of https://github.com/adorsys…
Christiantyemele Jan 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
[alias]
docs = "doc --workspace --no-deps --open"
docs = "doc --workspace --no-deps --open"

[target.x86_64-unknown-linux-musl]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
1 change: 1 addition & 0 deletions .debug/.rustc_info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"rustc_fingerprint":3386982821950496342,"outputs":{"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.80.1 (3f5fd8dd4 2024-08-06)\nbinary: rustc\ncommit-hash: 3f5fd8dd41153bc5fdca9427e9e05be2c767ba23\ncommit-date: 2024-08-06\nhost: x86_64-unknown-linux-gnu\nrelease: 1.80.1\nLLVM version: 18.1.7\n","stderr":""},"16495917692426387086":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n","stderr":""},"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/christian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""}},"successes":{}}
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
target/
**/target/
.idea/
5 changes: 5 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SERVER_PUBLIC_DOMAIN="http://didcomm-mediator.com"
SERVER_LOCAL_PORT="8080"
STORAGE_DIRPATH="crates/generic-server/target/storage"
MONGO_DBN="mediator-coordination"
MONGO_URI="mongodb://mongodb:27017"
20 changes: 0 additions & 20 deletions .github/workflows/CD.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish Image

on:
push:
branches:
- '*'
tags:
- 'v*'

env:
IMAGE_NAME: didcomm-mediator-rs

jobs:
push:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read

steps:
- uses: actions/checkout@v4

- name: Build image
run: docker build . --file Dockerfile --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}"

- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Push image
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME

# Ensure all uppercase characters are converted to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
# Strip the git ref prefix from the version
VERSION=latest
# Remove the "v" prefix from the tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use "latest" tag for the main branch
[ "$VERSION" == "main" ] && VERSION=latest
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock


# These are backup files generated by rustfmt
**/*.rs.bk
Expand All @@ -27,7 +27,7 @@ Cargo.lock

# Environment variables files
.env.example
.env


# Reference crate
mediator-server
Expand Down
Loading
Loading