2021-01-24 21:16:22 +01:00
|
|
|
# cic-internal-integration
|
|
|
|
|
2021-08-21 19:23:43 +02:00
|
|
|
## Getting started
|
2021-01-24 21:16:22 +01:00
|
|
|
|
2021-08-30 19:14:22 +02:00
|
|
|
This repo uses docker-compose and docker buildkit. Set the following environment variables to get started:
|
2021-02-11 11:14:30 +01:00
|
|
|
|
|
|
|
```
|
2021-08-30 19:14:22 +02:00
|
|
|
export COMPOSE_DOCKER_CLI_BUILD=1
|
|
|
|
export DOCKER_BUILDKIT=1
|
2021-01-24 21:16:22 +01:00
|
|
|
```
|
2021-08-19 18:29:41 +02:00
|
|
|
|
2021-08-30 19:14:22 +02:00
|
|
|
start services, database, redis and local ethereum node
|
|
|
|
```
|
|
|
|
docker-compose up -d
|
2021-08-19 18:29:41 +02:00
|
|
|
```
|
2021-01-24 21:16:22 +01:00
|
|
|
|
2021-08-30 19:14:22 +02:00
|
|
|
Run app/contract-migration to deploy contracts
|
2021-01-24 21:16:22 +01:00
|
|
|
```
|
2021-08-30 19:14:22 +02:00
|
|
|
RUN_MASK=3 docker-compose up contract-migration
|
2021-01-24 21:16:22 +01:00
|
|
|
```
|
|
|
|
|
2021-08-21 19:23:43 +02:00
|
|
|
stop cluster
|
2021-08-19 18:29:41 +02:00
|
|
|
```
|
2021-08-21 19:23:43 +02:00
|
|
|
docker-compose down
|
2021-01-24 21:16:22 +01:00
|
|
|
```
|
2021-08-19 18:29:41 +02:00
|
|
|
|
2021-08-30 19:14:22 +02:00
|
|
|
stop cluster and delete data
|
2021-01-24 21:16:22 +01:00
|
|
|
```
|
2021-08-21 19:23:43 +02:00
|
|
|
docker-compose down -v
|
2021-01-24 21:16:22 +01:00
|
|
|
```
|
2021-08-19 18:29:41 +02:00
|
|
|
|
2021-08-21 19:23:43 +02:00
|
|
|
rebuild an images
|
|
|
|
```
|
|
|
|
docker-compose up --build <service_name>
|
2021-02-09 18:32:36 +01:00
|
|
|
```
|
|
|
|
|
2021-02-02 17:23:12 +01:00
|
|
|
|