-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
45 lines (34 loc) · 987 Bytes
/
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
IMAGE_NAME ?= dnxsolutions/ecs-deploy:latest
.env:
cp .env.template .env
echo >> .env
build:
docker build -t $(IMAGE_NAME) .
shell: .env
docker run --rm -it --env-file=.env \
--entrypoint=/bin/bash -v ~/.aws:/root/.aws \
-v $(PWD)/src:/work $(IMAGE_NAME)
scan: build
docker run --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--name Grype anchore/grype:v0.59.1 \
$(IMAGE_NAME)
lint:
docker run --rm -i \
-v $(PWD)/hadolint.yaml:/.config/hadolint.yaml \
hadolint/hadolint < Dockerfile
deploy: .env
@echo "make deploy"
docker-compose -f docker-compose.yml run --rm deploy
cutover: .env
@echo "make cutover"
docker-compose -f docker-compose.yml run --rm cutover
run-task: .env
@echo "make run-task"
docker-compose -f docker-compose.yml run --rm run-task
worker-deploy:
@echo "make worker-deploy"
docker-compose -f docker-compose.yml run --rm worker-deploy
ecr-scan:
@echo "make ecr-scan"
docker-compose -f docker-compose.yml run --rm ecr-scan