forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
49 lines (35 loc) · 1.56 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
include .env
.PHONY: up update build dsbin down start stop prune ps bash logs cli
default: up
up:
@echo "Starting up containers for $(COMPOSE_PROJECT_NAME)..."
@docker-compose -f docker/docker-compose.yml up
#queda en forwground intencionalmente
up-rest:
@echo "Starting up containers for $(COMPOSE_PROJECT_NAME)..."
@docker-compose -f docker/docker-compose.yml -f docker/docker-compose-rest.yml up -d
update:
@echo "Cleaning containers code, including 'node_modules' libraries, .css files, etc. Then install dependencies again..."
docker-compose -f docker/docker-compose.yml run --workdir=/app --rm dspace-angular sh -c "yarn run clean && yarn install --force && yarn run build"
build:
@echo "Building image from Dockerfile..."
@docker-compose -f docker/docker-compose.yml -f docker/docker-compose-rest.yml build
stop: down
start: up
down:
@echo "Stopping containers for $(COMPOSE_PROJECT_NAME)..."
@docker-compose -f docker/docker-compose.yml -f docker/docker-compose-rest.yml stop
prune:
@echo "Removing containers for $(COMPOSE_PROJECT_NAME)..."
@docker-compose -f docker/docker-compose.yml -f docker/docker-compose-rest.yml down -v
ps:
@docker ps --filter name='$(COMPOSE_PROJECT_NAME)*'
bash:
@docker-compose -f docker/docker-compose.yml exec dspace-angular /bin/sh
logs:
@docker-compose -f docker/docker-compose.yml -f docker/docker-compose-rest.yml logs --follow --tail=100 $(filter-out $@,$(MAKECMDGOALS))
cli:
@docker-compose -f docker/cli.yml run --rm dspace-cli $(filter-out $@,$(MAKECMDGOALS))
# https://stackoverflow.com/a/6273809/1826109
%:
@: