cic-stack/README.md

42 lines
692 B
Markdown
Raw Normal View History

2021-01-24 21:16:22 +01:00
# cic-internal-integration
## 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-30 01:33:46 +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-30 19:14:22 +02:00
start services, database, redis and local ethereum node
```
docker-compose up -d
```
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
```
stop cluster
```
docker-compose down
2021-01-24 21:16:22 +01: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
```
rebuild an images
```
docker-compose up --build <service_name>
2021-02-09 18:32:36 +01:00
```
to delete the buildkit cache
```
docker builder prune --filter type=exec.cachemount
```