Makefile: add compose-prod-related targets
This commit is contained in:
parent
5c65ea289b
commit
98e194f926
13
Makefile
13
Makefile
|
@ -1,3 +1,4 @@
|
|||
dc = docker-compose
|
||||
dtag = netcoreultimapp
|
||||
dtagdev = netcoreultimapp-dev
|
||||
dfile = Dockerfile
|
||||
|
@ -24,7 +25,7 @@ pgdbargs = run -d $(pgdbcapdrop) $(pgdbenv) --name $(pgdbname) $(pgdbports) $(pg
|
|||
pgdbimg = postgres:13.1-alpine
|
||||
zenv = DB_CONNECTION_STRING=$$(cat appsettings.Development.json | jq .db.Postgres | sed -e 's/5432/5433/' -e 's/=db/=localhost/' -e 's/"//g')
|
||||
|
||||
.PHONY: dev dockerbuild dockerdevbuild dockerrun dockerdevrun dockertest dockerdev kaniko clean prune pgdba pgdbz test dcdevb dcdevup
|
||||
.PHONY: dev dockerbuild dockerdevbuild dockerrun dockerdevrun dockertest dockerdev kaniko clean prune pgdba pgdbz test dcdevb dcprodbuild dcdevup dcprodup
|
||||
|
||||
dev: restore build run
|
||||
|
||||
|
@ -65,13 +66,19 @@ dockerdevrun:
|
|||
$(dcmdrun) -p $(lportdev):5000 $(dtagdev)
|
||||
|
||||
dcdevb:
|
||||
docker-compose build --no-cache --pull --progress tty
|
||||
$(dc) -f $(dc).yml build --no-cache --pull --progress tty
|
||||
|
||||
dcprodbuild:
|
||||
$(dc) -f $(dc).prod.yml build --no-cache --pull --progress tty
|
||||
|
||||
dcdevup:
|
||||
@echo ======================
|
||||
@echo local dev port: $(lportdev)
|
||||
@echo ======================
|
||||
docker-compose up --remove-orphans
|
||||
$(dc) -f $(dc).yml up --remove-orphans
|
||||
|
||||
dcprodup:
|
||||
$(dc) -f $(dc).prod.yml up --remove-orphans --scale netcoreultimateapp-prod=2
|
||||
|
||||
kaniko:
|
||||
$(krelease)
|
||||
|
|
Reference in New Issue