Rancher Maven Plugin

A simple maven plugin to create or upgrade a Rancher service automatically

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.github.ptdien
ArtifactId

ArtifactId

rancher-maven-plugin
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Rancher Maven Plugin
A simple maven plugin to create or upgrade a Rancher service automatically
Project URL

Project URL

https://github.com/ptdien/rancher-maven-plugin
Source Code Management

Source Code Management

https://github.com/ptdien/rancher-maven-plugin

Download rancher-maven-plugin

How to add to project

<plugin>
    <groupId>com.github.ptdien</groupId>
    <artifactId>rancher-maven-plugin</artifactId>
    <version>1.0.2</version>
</plugin>

Dependencies

compile (3)

Group / Artifact Type Version
log4j : log4j jar 1.2.17
com.fasterxml.jackson.core : jackson-databind jar 2.9.4
org.apache.maven : maven-plugin-api jar 3.0

provided (2)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.16.20
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

rancher-maven-plugin

Upgrade a single service in specific environment

1. Installation

<plugin>
    <groupId>com.github.ptdien</groupId>
    <artifactId>rancher-maven-plugin</artifactId>
    <version>1.0.2</version>
</plugin>

2. Usage:

mvn 
-Drancher.host=<The rancher host. Ex: 127.0.0.1>
-Drancher.port=<The rancher port. Ex: 8080>
-Drancher.project.name= <The environment name>
-Drancher.stack.name= <The stack name>
-Drancher.service.name= <The service name that you want to upgrade or create if it's not already existed on stack.>
-Dservice.action.timeout=60000 <60 seconds>
-Drancher.username= <The environment access key>
-Drancher.password= <The evironment secret key>
-Ddocker.image.name= <The docker image name. Ex: 127.0.0.1:9000/dockerimage:1.0.0>
rancher:run

Versions

Version
1.0.2
1.0.1
1.0.0
0.5.0
0.0.8
0.0.7
0.0.4
0.0.3
0.0.2