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-10-18 21:14:29 +02:00
|
|
|
|
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-09-16 12:06:53 +02:00
|
|
|
docker-compose down -v --remove-orphans
|
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-09-20 08:59:12 +02:00
|
|
|
to delete the buildkit cache
|
|
|
|
```
|
|
|
|
docker builder prune --filter type=exec.cachemount
|
|
|
|
```
|