WillemJiang closed pull request #244: [SCB-824] Fix the bug that demos cannot
be built: add docker plugin activation tag for demos
URL: https://github.com/apache/incubator-servicecomb-saga/pull/244
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/saga-demo/conditional-transaction-demo/inventory/pom.xml
b/saga-demo/conditional-transaction-demo/inventory/pom.xml
index ee698ef0..12fca420 100644
--- a/saga-demo/conditional-transaction-demo/inventory/pom.xml
+++ b/saga-demo/conditional-transaction-demo/inventory/pom.xml
@@ -56,6 +56,11 @@
<profiles>
<profile>
<id>docker</id>
+ <activation>
+ <file>
+ <exists>/var/run/docker.sock</exists>
+ </file>
+ </activation>
<build>
<plugins>
<plugin>
diff --git a/saga-demo/conditional-transaction-demo/membership/pom.xml
b/saga-demo/conditional-transaction-demo/membership/pom.xml
index b13efc3b..52b04e83 100644
--- a/saga-demo/conditional-transaction-demo/membership/pom.xml
+++ b/saga-demo/conditional-transaction-demo/membership/pom.xml
@@ -57,6 +57,11 @@
<profiles>
<profile>
<id>docker</id>
+ <activation>
+ <file>
+ <exists>/var/run/docker.sock</exists>
+ </file>
+ </activation>
<build>
<plugins>
<plugin>
diff --git a/saga-demo/conditional-transaction-demo/payment/pom.xml
b/saga-demo/conditional-transaction-demo/payment/pom.xml
index 1ab36a62..21ce51f4 100644
--- a/saga-demo/conditional-transaction-demo/payment/pom.xml
+++ b/saga-demo/conditional-transaction-demo/payment/pom.xml
@@ -57,6 +57,11 @@
<profiles>
<profile>
<id>docker</id>
+ <activation>
+ <file>
+ <exists>/var/run/docker.sock</exists>
+ </file>
+ </activation>
<build>
<plugins>
<plugin>
diff --git a/saga-demo/conditional-transaction-demo/supplier/pom.xml
b/saga-demo/conditional-transaction-demo/supplier/pom.xml
index 99f64c5b..5220e519 100644
--- a/saga-demo/conditional-transaction-demo/supplier/pom.xml
+++ b/saga-demo/conditional-transaction-demo/supplier/pom.xml
@@ -57,6 +57,11 @@
<profiles>
<profile>
<id>docker</id>
+ <activation>
+ <file>
+ <exists>/var/run/docker.sock</exists>
+ </file>
+ </activation>
<build>
<plugins>
<plugin>
diff --git
a/saga-demo/dependency-free-transaction-demo/car-rental-service/pom.xml
b/saga-demo/dependency-free-transaction-demo/car-rental-service/pom.xml
index d49ca868..bf026731 100644
--- a/saga-demo/dependency-free-transaction-demo/car-rental-service/pom.xml
+++ b/saga-demo/dependency-free-transaction-demo/car-rental-service/pom.xml
@@ -67,6 +67,11 @@
<profiles>
<profile>
<id>docker</id>
+ <activation>
+ <file>
+ <exists>/var/run/docker.sock</exists>
+ </file>
+ </activation>
<build>
<plugins>
<plugin>
diff --git
a/saga-demo/dependency-free-transaction-demo/flight-booking-service/pom.xml
b/saga-demo/dependency-free-transaction-demo/flight-booking-service/pom.xml
index 781b91de..2897db87 100644
--- a/saga-demo/dependency-free-transaction-demo/flight-booking-service/pom.xml
+++ b/saga-demo/dependency-free-transaction-demo/flight-booking-service/pom.xml
@@ -67,6 +67,11 @@
<profiles>
<profile>
<id>docker</id>
+ <activation>
+ <file>
+ <exists>/var/run/docker.sock</exists>
+ </file>
+ </activation>
<build>
<plugins>
<plugin>
diff --git
a/saga-demo/dependency-free-transaction-demo/hotel-reservation-service/pom.xml
b/saga-demo/dependency-free-transaction-demo/hotel-reservation-service/pom.xml
index 4afc6914..c17db001 100644
---
a/saga-demo/dependency-free-transaction-demo/hotel-reservation-service/pom.xml
+++
b/saga-demo/dependency-free-transaction-demo/hotel-reservation-service/pom.xml
@@ -67,6 +67,11 @@
<profiles>
<profile>
<id>docker</id>
+ <activation>
+ <file>
+ <exists>/var/run/docker.sock</exists>
+ </file>
+ </activation>
<build>
<plugins>
<plugin>
diff --git a/saga-demo/dependency-free-transaction-demo/payment-service/pom.xml
b/saga-demo/dependency-free-transaction-demo/payment-service/pom.xml
index 6263ab41..07cd8970 100644
--- a/saga-demo/dependency-free-transaction-demo/payment-service/pom.xml
+++ b/saga-demo/dependency-free-transaction-demo/payment-service/pom.xml
@@ -67,6 +67,11 @@
<profiles>
<profile>
<id>docker</id>
+ <activation>
+ <file>
+ <exists>/var/run/docker.sock</exists>
+ </file>
+ </activation>
<build>
<plugins>
<plugin>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services