Allow to build service without the private registry (#548)

This commit is contained in:
Andrey Fadeev 2021-03-05 18:37:04 +03:00 committed by GitHub
parent 0fa80b47ac
commit 24bce62370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 5 deletions

2
.gitmodules vendored
View File

@ -1,4 +1,4 @@
[submodule "build_utils"]
path = build_utils
url = git@github.com:rbkmoney/build_utils.git
url = https://github.com/rbkmoney/build_utils.git
branch = master

View File

@ -14,11 +14,11 @@ SERVICE_IMAGE_PUSH_TAG ?= $(SERVICE_IMAGE_TAG)
# Base image for the service
BASE_IMAGE_NAME := service-erlang
BASE_IMAGE_TAG := 51bd5f25d00cbf75616e2d672601dfe7351dcaa4
BASE_IMAGE_TAG := 0ac24d27225ff6a9d5cbf9ce7ba4a956a2b41a2d
# Build image tag to be used
BUILD_IMAGE_NAME := build-erlang
BUILD_IMAGE_TAG := 61a001bbb48128895735a3ac35b0858484fdb2eb
BUILD_IMAGE_TAG := e6e7e3ad278ede660e512426940ea0613b595f2b
CALL_ANYWHERE := all submodules rebar-update compile xref lint dialyze plt_update \
release clean distclean format check_format

View File

@ -1,3 +1,32 @@
# Hellgate
Проект, реализующий основные state processors проведения платежей.
Core logic service for payment states processing.
## Building
We widelly use Thrift to define RPC protocols.
So it needs to have [our Thrift compiler](https://github.com/rbkmoney/thrift) in PATH to build this service.
The recommended way to achieve this is by using our [build image](https://github.com/rbkmoney/image-build-erlang).
We are still experimenting on opening our build infrastructure so that you can use the explicit public registry setting for now.
You can adjust this parameter by exporting the environment variable `REGISTRY`.
### Сheatsheet
To build the service image without access to the internal RBK.money registry:
```shell
make submodules && REGISTRY=ghcr.io make wc_release build_image
```
To compile:
```shell
make submodules && REGISTRY=ghcr.io make wc_compile
```
To run the service tests (you need either to have access to the internal RBK.money registry or to modify `docker-compose.sh`):
```shell
make wdeps_test
```

@ -1 +1 @@
Subproject commit e1318727d4d0c3e48f5122bf3197158b6695f50e
Subproject commit 29cb2775d05d9c18c3aa74a629459cde84a2d42e