File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -47,3 +47,7 @@ Thumbs.db
47
47
* .iml
48
48
49
49
target /
50
+
51
+ # vagrant files #
52
+ # ###############
53
+ .vagrant /*
Original file line number Diff line number Diff line change 1
- COMPOSE_JAR_NAME=/home/vagrant/marathon/target/docker-compose-executor_0.0.1.jar
1
+ PROJECT_HOME_DIR=' /home/vagrant/marathon/'
2
+ PROJECT_VERSION=` mvn -f $PROJECT_HOME_DIR /pom.xml org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | sed -n -e ' /^\[.*\]/ !{ /^[0-9]/ { p; q } }' `
3
+ COMPOSE_JAR_NAME=/home/vagrant/marathon/target/docker-compose-executor_$PROJECT_VERSION .jar
2
4
java -jar ${COMPOSE_JAR_NAME}
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
#
15
+
15
16
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
16
17
echo deb https://apt.dockerproject.org/repo ubuntu-trusty main > /etc/apt/sources.list.d/docker.list
17
18
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E56151BF
@@ -70,6 +71,8 @@ update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
70
71
readonly IP_ADDRESS=192.168.33.7
71
72
readonly MESOS_VERSION=0.28.2-2.0.27
72
73
readonly MARATHON_VERSION=1.1.2-1.0.482
74
+ readonly PROJECT_HOME_DIR=' /home/vagrant/marathon'
75
+ readonly PROJECT_VERSION=` mvn -f $PROJECT_HOME_DIR /pom.xml org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | sed -n -e ' /^\[.*\]/ !{ /^[0-9]/ { p; q } }' `
73
76
74
77
75
78
function install_mesos {
@@ -84,10 +87,13 @@ function install_docker_compose {
84
87
pip install docker-compose
85
88
}
86
89
90
+ function get_pom_version {
91
+ mvn -f ${PROJECT_HOME_DIR} /pom.xml org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | sed -n -e ' /^\[.*\]/ !{ /^[0-9]/ { p; q } }'
92
+ }
87
93
88
94
function build_docker_compose_executor {
89
95
mvn -f /home/vagrant/marathon/pom.xml clean package -U
90
- chmod 777 /home/vagrant/marathon/target/docker-compose-executor_0.0.1 .jar
96
+ chmod 777 /home/vagrant/marathon/target/docker-compose-executor_ ${PROJECT_VERSION} .jar
91
97
}
92
98
93
99
function install_cluster_config {
You can’t perform that action at this time.
0 commit comments