File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 11VERSION: =9.5
22TAG: =base
33APP: =postgres
4- # NOTE: CNAME will not work because of the certificates
54REPO: =822924222578.dkr.ecr.us-east-1.amazonaws.com/$(APP )
65URL: =$(REPO ) :$(TAG )
76
87default :
98 @echo " Usage make [image | stopdb | rundb | runpsql | commit | push | check]"
109
11- image :
10+ login :
1211 ` aws ecr get-login --region us-east-1`
12+
13+ image :login
1314 echo " Building $( APP) "
1415 docker build -t $(URL ) $(VERSION ) /.
1516 make push
@@ -23,7 +24,7 @@ rundb:stopdb
2324runpsql :
2425 docker run -it --rm --link $(APP ) :postgres postgres psql -h postgres -U postgres
2526
26- commit :
27+ commit :login
2728 docker commit $(APP ) $(URL )
2829 make push
2930
3536 docker images $(URL )
3637
3738clean :
38- -docker rmi $( cmd docker images -a | grep "^<none>" | awk '{print $3}')
39- -docker rmi $( cmd docker images -a | grep "$(REPO ) " | awk '{print $3}')
39+ -docker rmi ` docker images -a | grep " ^<none>" | awk ' {print $3}' `
40+ -docker rmi ` docker images -a | grep " $( REPO) " | awk ' {print $3}' `
4041
4142
You can’t perform that action at this time.
0 commit comments