-
Notifications
You must be signed in to change notification settings - Fork 1
Create and run service docker image
Sutthinai Boonyingyongchai edited this page May 12, 2017
·
3 revisions
-
clone จากบน github มาซะ
git clone https://github.com/up1/soa_group4.git
-
ถ้ายังไม่ได้เอาขึ้น master ก็ clone แบบนี้
เปลี่ยน develop ให้เป็น branch ของตัวเอง เช่น feature/MatchingService
git clone -b develop --single-branch https://github.com/up1/soa_group4.git
-
เข้าไปที่ directory ของ service ที่จะรัน
เช่นcd soa_group4/MatchingService
-
ทำอันนี้จะได้ docker image มา
mvn clean package docker:build
-
ลองเช็คดูว่าได้ไฟล์ image มายัง
docker images
-
Runnnnnnnnnn แก้ port ให้ตรงกับที่ service ใช้
กับชื่อ service
docker run -p 9001:9001 -it MatchinhService
- Home
- Subject summary
- Docker
- Project
- Java
- Maven
- MySQL
- User-service
- API testing with Silk
- Health Service
- Prometheus & Grafana