-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
22 lines (18 loc) · 882 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
all:
echo "Please choose make stage or make production"
stage:
docker build --no-cache \
--build-arg ENVIRONMENT=stage \
--build-arg SOLR_HOST=stage-intermine-solr.alliancegenome.org \
-t 100225593120.dkr.ecr.us-east-1.amazonaws.com/agr_intermine_builder_env:stage \
-f intermine_builder/intermine_builder.Dockerfile ./intermine_builder
pushstage: stage
docker push 100225593120.dkr.ecr.us-east-1.amazonaws.com/agr_intermine_builder_env:stage
production:
docker build --no-cache \
--build-arg ENVIRONMENT=production \
--build-arg SOLR_HOST=production-intermine-solr.alliancegenome.org \
-t 100225593120.dkr.ecr.us-east-1.amazonaws.com/agr_intermine_builder_env:production \
-f intermine_builder/intermine_builder.Dockerfile ./intermine_builder
pushproduction: production
docker push 100225593120.dkr.ecr.us-east-1.amazonaws.com/agr_intermine_builder_env:production