-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
85 lines (65 loc) · 3.87 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
.PHONY: build-containers build-vm install-vm clean
VERSAO_CONTAINERS='10.0'
build: build-containers publish-containers build-vm
clean:
docker rmi --force vagrant_sei4_solr || true
docker rmi --force vagrant_sei4_jod || true
docker rmi --force vagrant_sei4_mysql || true
docker rmi --force vagrant_sei4_oracle || true
docker rmi --force vagrant_sei4_sqlserver || true
docker rmi --force vagrant_sei4_postgresql || true
docker rmi --force vagrant_sei4_httpd || true
docker rmi --force vagrant_sei4_mailcatcher || true
build-containers:
docker build -t vagrant_sei4_httpd httpd/
docker tag vagrant_sei4_httpd processoeletronico/vagrant_sei4_httpd:$(VERSAO_CONTAINERS)
docker tag vagrant_sei4_httpd processoeletronico/vagrant_sei4_httpd:latest
docker build -t vagrant_sei4_mysql mysql/
docker tag vagrant_sei4_mysql processoeletronico/vagrant_sei4_mysql:$(VERSAO_CONTAINERS)
docker tag vagrant_sei4_mysql processoeletronico/vagrant_sei4_mysql:latest
docker build -t vagrant_sei4_oracle oracle/
docker tag vagrant_sei4_oracle processoeletronico/vagrant_sei4_oracle:$(VERSAO_CONTAINERS)
docker tag vagrant_sei4_oracle processoeletronico/vagrant_sei4_oracle:latest
docker build -t vagrant_sei4_sqlserver sqlserver
docker tag vagrant_sei4_sqlserver processoeletronico/vagrant_sei4_sqlserver:$(VERSAO_CONTAINERS)
docker tag vagrant_sei4_sqlserver processoeletronico/vagrant_sei4_sqlserver:latest
docker build -t vagrant_sei4_postgresql postgresql
docker tag vagrant_sei4_postgresql processoeletronico/vagrant_sei4_postgresql:$(VERSAO_CONTAINERS)
docker tag vagrant_sei4_postgresql processoeletronico/vagrant_sei4_postgresql:latest
docker build -t vagrant_sei4_solr solr/
docker tag vagrant_sei4_solr processoeletronico/vagrant_sei4_solr:$(VERSAO_CONTAINERS)
docker tag vagrant_sei4_solr processoeletronico/vagrant_sei4_solr:latest
docker build -t vagrant_sei4_jod jod/
docker tag vagrant_sei4_jod processoeletronico/vagrant_sei4_jod:$(VERSAO_CONTAINERS)
docker tag vagrant_sei4_jod processoeletronico/vagrant_sei4_jod:latest
docker build -t vagrant_sei4_mailcatcher mailcatcher
docker tag vagrant_sei4_mailcatcher processoeletronico/vagrant_sei4_mailcatcher:$(VERSAO_CONTAINERS)
docker tag vagrant_sei4_mailcatcher processoeletronico/vagrant_sei4_mailcatcher:latest
docker build -t vagrant_sei4_memcached memcached
docker tag vagrant_sei4_memcached processoeletronico/vagrant_sei4_memcached:$(VERSAO_CONTAINERS)
docker tag vagrant_sei4_memcached processoeletronico/vagrant_sei4_memcached:latest
publish-containers:
docker push processoeletronico/vagrant_sei4_httpd:$(VERSAO_CONTAINERS)
docker push processoeletronico/vagrant_sei4_httpd:latest
docker push processoeletronico/vagrant_sei4_mysql:$(VERSAO_CONTAINERS)
docker push processoeletronico/vagrant_sei4_mysql:latest
docker push processoeletronico/vagrant_sei4_solr:$(VERSAO_CONTAINERS)
docker push processoeletronico/vagrant_sei4_solr:latest
docker push processoeletronico/vagrant_sei4_oracle:$(VERSAO_CONTAINERS)
docker push processoeletronico/vagrant_sei4_oracle:latest
docker push processoeletronico/vagrant_sei4_sqlserver:$(VERSAO_CONTAINERS)
docker push processoeletronico/vagrant_sei4_sqlserver:latest
docker push processoeletronico/vagrant_sei4_postgresql:$(VERSAO_CONTAINERS)
docker push processoeletronico/vagrant_sei4_postgresql:latest
docker push processoeletronico/vagrant_sei4_jod:$(VERSAO_CONTAINERS)
docker push processoeletronico/vagrant_sei4_jod:latest
docker push processoeletronico/vagrant_sei4_memcached:$(VERSAO_CONTAINERS)
docker push processoeletronico/vagrant_sei4_memcached:latest
docker push processoeletronico/vagrant_sei4_mailcatcher:$(VERSAO_CONTAINERS)
docker push processoeletronico/vagrant_sei4_mailcatcher:latest
build-vm:
rm -rf dist/* || true
packer build -force sei-vagrant.json
install-vm:
vagrant box remove sei-vagrant || true
vagrant box add sei-vagrant ./dist/package.box