This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdockerize-project.txt
48 lines (39 loc) · 1.52 KB
/
dockerize-project.txt
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
mvn clean install -Dfile.encoding=UTF-8
cd ./messenger-user-service
mvn clean install -Dfile.encoding=UTF-8
cd ../
cd ./messenger-chat-service
mvn clean install -Dfile.encoding=UTF-8
cd ../
cd ./messenger-message-service
mvn clean install -Dfile.encoding=UTF-8
cd ../
(or)
mvn clean install -Dfile.encoding=UTF-8 -Dmaven.test.skip
cd ./messenger-user-service
mvn clean install -Dfile.encoding=UTF-8 -Dmaven.test.skip
cd ../
cd ./messenger-chat-service
mvn clean install -Dfile.encoding=UTF-8 -Dmaven.test.skip
cd ../
cd ./messenger-message-service
mvn clean install -Dfile.encoding=UTF-8 -Dmaven.test.skip
cd ../
docker stop messenger-user-service
docker stop messenger-chat-service
docker stop messenger-message-service
docker rm messenger-user-service
docker rm messenger-chat-service
docker rm messenger-message-service
docker image rm -f messenger-user-service:1.1
docker image rm -f messenger-chat-service:1.1
docker image rm -f messenger-message-service:1.1
docker build -t messenger-user-service:1.1 ./messenger-user-service
docker build -t messenger-chat-service:1.1 ./messenger-chat-service
docker build -t messenger-message-service:1.1 ./messenger-message-service
docker run --name messenger-user-service -d -p 10001:10001 messenger-user-service:1.1
docker run --name messenger-chat-service -d -p 10002:10002 messenger-chat-service:1.1
docker run --name messenger-message-service -d -p 10003:10003 messenger-message-service:1.1
docker start messenger-user-service
docker start messenger-chat-service
docker start messenger-message-service