Makefile: minimum dependencies for dev environment (#375)

* Makefile: minimum dependencies for dev environment

* docs

* Makefile: merge alldeps and dev project names

* restart build
This commit is contained in:
Marwan Sulaiman
2018-08-01 03:17:27 -04:00
committed by GitHub
parent 441e21d281
commit 22c1d86411
2 changed files with 17 additions and 4 deletions
+3 -1
View File
@@ -25,7 +25,9 @@ it easy to get up and running:
That's it! After the `make dev` command is done, everything will be up and running and you can move
on to the next step.
If you want to stop everything at any time, run `make dev-teardown`.
If you want to stop everything at any time, run `make down`.
Note that `make dev` only runs the minimum amount of dependencies needed for things to work. If you'd like to run all the possible dependencies run `make alldeps` or directly the services available in the `docker-compose.yml` file.
# Run the Proxy or the Registry
+14 -3
View File
@@ -34,8 +34,9 @@ test-unit:
olympus-docker:
docker build -t gopackages/olympus -f cmd/olympus/Dockerfile .
.PHONY: dev
dev:
.PHONY: alldeps
alldeps:
docker-compose -p athensdev up -d mysql
docker-compose -p athensdev up -d postgres
docker-compose -p athensdev up -d mongo
@@ -43,7 +44,17 @@ dev:
docker-compose -p athensdev up -d minio
docker-compose -p athensdev up -d jaeger
echo "sleeping for a bit to wait for the DB to come up"
sleep 5
sleep 5
.PHONY: dev
dev:
docker-compose -p athensdev up -d mongo
docker-compose -p athensdev up -d redis
.PHONY: down
down:
docker-compose -p athensdev down
docker volume prune
.PHONY: dev-teardown
dev-teardown: