Commit b437ad75 authored by Pavel Kuzmenko's avatar Pavel Kuzmenko

Merge branch 'kpn/69/ci_cd' into 'master'

Feat(CI/CD): change deploy dependency

See merge request !551
parents ff73c2d5 142dd16f
IMAGE ?= prozorro-sale-auction-frontend:develop
IMAGE_TEST ?= prozorro-sale-auction-frontend:develop-test
AUCTION_IMAGE = prozorro-sale-auction:develop
REACT_SRC_PATH ?= $(shell pwd)/src
GIT_STAMP ?= $(shell git describe || echo v0.1.0)
......@@ -27,7 +28,16 @@ clean: remove-compose
## Runs application development on docker. Builds, creates, starts containers for a service. | Common
run: docker-build
@docker-compose up -d frontend
@docker-compose up -d mongo
@sleep 2
@docker-compose run --rm mongo mongo mongo:27017 --eval "rs.initiate({'_id': 'rs0', 'version': 1, 'members': [{'_id': 0, 'host': 'mongo:27017', 'priority': 1}]});"
@sleep 2
@docker-compose up -d
## Stops application. Stops running container without removing them.
stop: COMPOSE ?= docker-compose -f compose-base.yml
stop:
@docker-compose stop
## Builds docker image
docker-build:
......@@ -44,6 +54,7 @@ docker-build:
remove-compose:
@docker network prune -f
@docker-compose down
@docker-compose rm -sf
## Create tag | Release
version:
......
......@@ -16,6 +16,8 @@ npm run build
```
## To work with project using all resources
```
make run
```
- Clone **auction** project
- execute ```make docker-build``` in **auction** project
- got to **auction-frontend** project
- execute ```make run``` in **auction-frontend** project
version: '3'
version: '3.9'
services:
databridge:
image: "${AUCTION_IMAGE}"
command: prozorro_sale.auction.databridge
environment:
LOGGING_LEVEL: DEBUG
MONGO_URL: 'mongodb://mongo:27017'
MONGO_DATABASE: 'auctions'
PROCEDURE_DATABRIDGE: 'google.com'
DICTIONARIES_AND_CLASSIFIERS_API: 'procedure-dev.prozori.in.ua'
volumes:
- ./auction/specs:/specs
ports:
- 8888:80
depends_on:
- mongo
chronograph:
image: "${AUCTION_IMAGE}"
command: prozorro_sale.auction.chronograph
environment:
LOGGING_LEVEL: DEBUG
MONGO_URL: 'mongodb://mongo:27017'
MONGO_DATABASE: 'auctions'
PROCEDURE_DATABRIDGE: 'google.com'
volumes:
- ./auction/specs:/specs
depends_on:
- mongo
auction:
image: "${AUCTION_IMAGE}"
command: prozorro_sale.auction.api.main
environment:
LOGGING_LEVEL: DEBUG
SWAGGER_DOC: 1
MONGO_URL: 'mongodb://mongo:27017'
MONGO_DATABASE: 'auctions'
PROCEDURE_DATABRIDGE: 'google.com'
SEARCH_URL: 'google.com'
volumes:
- ./auction/specs:/specs
ports:
- 7777:80
depends_on:
- mongo
mongo:
image: mongo
volumes:
- mongo_data:/data/db
ports:
- 27010:27017
command: [ "--replSet", "rs0" ]
frontend:
image: ${IMAGE}
depends_on:
- chronograph
- databridge
- auction
- local-ui
environment:
PROCEDURE_URL: "http://0.0.0.0:8080/"
......@@ -17,3 +73,6 @@ services:
PROCEDURE_URL: "http://0.0.0.0:8080/"
volumes:
- ${REACT_SRC_PATH}:/build/src/
volumes:
mongo_data:
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment