feature: basic management service implementation (#44)

* feat: basic management service implementation [FAILING TESTS]

* test: fix healthcheck test

* test: #39 add peer registration endpoint test

* feat: #39 add setup key handling

* feat: #39 add peer management store persistence

* refactor: extract config read/write to the utility package

* refactor: move file contents copy to the utility package

* refactor: use Accounts instead of Users in the Store

* feature: add management server Docker file

* refactor: introduce datadir instead of config

* chore: use filepath.Join to concat filepaths instead of string concat

* refactor: move stop channel to the root

* refactor: move stop channel to the root

* review: fix PR review notes

Co-authored-by: braginini <hello@wiretrustee.com>
This commit is contained in:
Mikhail Bragin
2021-07-17 14:38:59 +02:00
committed by GitHub
parent dd50f495ab
commit 4587f7686e
17 changed files with 980 additions and 17 deletions

View File

@@ -40,7 +40,7 @@ dockers:
- image_templates:
- wiretrustee/wiretrustee:signal-{{ .Version }}-amd64
goarch: amd64
use_buildx: true
use: buildx
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/amd64"
@@ -53,7 +53,7 @@ dockers:
- image_templates:
- wiretrustee/wiretrustee:signal-{{ .Version }}-arm64v8
goarch: arm64
use_buildx: true
use: buildx
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/arm64"
@@ -63,6 +63,32 @@ dockers:
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=maintainer=wiretrustee@wiretrustee.com"
- image_templates:
- wiretrustee/wiretrustee:management-{{ .Version }}-amd64
goarch: amd64
use: buildx
dockerfile: management/Dockerfile
build_flag_templates:
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=maintainer=wiretrustee@wiretrustee.com"
- image_templates:
- wiretrustee/wiretrustee:management-{{ .Version }}-arm64v8
goarch: arm64
use: buildx
dockerfile: management/Dockerfile
build_flag_templates:
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=maintainer=wiretrustee@wiretrustee.com"
docker_manifests:
- name_template: wiretrustee/wiretrustee:signal-{{ .Version }}
@@ -73,4 +99,14 @@ docker_manifests:
- name_template: wiretrustee/wiretrustee:signal-latest
image_templates:
- wiretrustee/wiretrustee:signal-{{ .Version }}-arm64v8
- wiretrustee/wiretrustee:signal-{{ .Version }}-amd64
- wiretrustee/wiretrustee:signal-{{ .Version }}-amd64
- name_template: wiretrustee/wiretrustee:management-{{ .Version }}
image_templates:
- wiretrustee/wiretrustee:management-{{ .Version }}-arm64v8
- wiretrustee/wiretrustee:management-{{ .Version }}-amd64
- name_template: wiretrustee/wiretrustee:management-latest
image_templates:
- wiretrustee/wiretrustee:management-{{ .Version }}-arm64v8
- wiretrustee/wiretrustee:management-{{ .Version }}-amd64