hellgate/README.md

50 lines
1.6 KiB
Markdown
Raw Normal View History

2016-04-07 11:37:34 +00:00
# Hellgate
Core logic service for payment states processing.
## Building
2022-02-09 15:21:50 +00:00
To build the project, run the following command:
2022-02-09 15:21:50 +00:00
```bash
$ make compile
```
2022-02-09 15:21:50 +00:00
## Running
2022-02-09 15:21:50 +00:00
To enter the [Erlang shell][1] with the project running, run the following command:
2022-02-09 15:21:50 +00:00
```bash
$ make rebar-shell
```
2022-02-09 15:21:50 +00:00
## Development environment
### Run in a docker container
You can run any of the tasks defined in the Makefile from inside of a docker container (defined in `Dockerfile.dev`) by prefixing the task name with `wc-`. To successfully build the dev container you need `Docker BuildKit` enabled. This can be accomplished by either installing [docker-buildx](https://docs.docker.com/buildx/working-with-buildx/) locally, or exporting the `DOCKER_BUILDKIT=1` environment variable.
2022-02-09 15:21:50 +00:00
#### Example
* This command will run the `compile` task in a docker container:
```bash
$ make wc-compile
```
2022-02-09 15:21:50 +00:00
### Run in a docker-compose environment
Similarly, you can run any of the tasks defined in the Makefile from inside of a docker-compose environment (defined in `docker-compose.yaml`) by prefixing the task name with `wdeps-`. To successfully build the dev container you need `Docker BuildKit` enabled (see `Run in a docker container` section). It *may* also be necessary to export a `COMPOSE_DOCKER_CLI_BUILD=1` environment variable for `docker-compose` container builds to work properly.
2022-02-09 15:21:50 +00:00
#### Example
* This command will run the `test` task in a docker-compose environment:
```bash
$ make wdeps-test
```
2022-02-09 15:21:50 +00:00
## Documentation
@TODO Please write a couple of words about what your project does and how it does it.
[1]: http://erlang.org/doc/man/shell.html