mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
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:
+3
-1
@@ -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
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user