Skip to content

Commit 7cda6df

Browse files
author
Ken McDonald
committed
Initial Commit
1 parent ce1e320 commit 7cda6df

File tree

1,027 files changed

+161051
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,027 files changed

+161051
-1
lines changed

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.gradle
2+
/build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
5+
### STS ###
6+
.apt_generated
7+
.classpath
8+
.factorypath
9+
.project
10+
.settings
11+
.springBeans
12+
.sts4-cache
13+
14+
### IntelliJ IDEA ###
15+
.idea
16+
*.iws
17+
*.iml
18+
*.ipr
19+
20+
### NetBeans ###
21+
/nbproject/private/
22+
/build/
23+
/out/
24+
/nbbuild/
25+
/dist/
26+
/nbdist/
27+
/.nb-gradle/
28+
/gradle/
29+
machina.log*

.gitlab-ci.yml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
image: docker:latest
2+
services:
3+
- docker:dind
4+
5+
variables:
6+
DOCKER_DRIVER: overlay
7+
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
8+
9+
stages:
10+
- build
11+
- package
12+
- deploy-stg
13+
14+
before_script:
15+
- export GRADLE_USER_HOME=`pwd`/.gradle
16+
17+
gradle-build:
18+
stage: build
19+
image: gradle:alpine
20+
script:
21+
- gradle --build-cache assemble
22+
- gradle -b build-11.gradle --build-cache assemble
23+
#Move the CMD SpringBoot main class into the source tree and build
24+
- cp cmd/MachinaApplication.java src/main/java/com/custodela/machina/
25+
- gradle -b build-cmd.gradle --build-cache assemble
26+
- gradle -b build-cmd-11.gradle --build-cache assemble
27+
28+
cache:
29+
key: "$CI_COMMIT_REF_NAME"
30+
policy: push
31+
paths:
32+
- build
33+
- .gradle
34+
artifacts:
35+
paths:
36+
- build/libs/*.jar
37+
38+
#package-docker:
39+
# stage: package
40+
# script:
41+
# - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
42+
# - docker build -t registry.gitlab.com/custodela/machina .
43+
# - docker build -t registry.gitlab.com/custodela/machina:web .
44+
# - docker build -f Dockerfile-11 -t registry.gitlab.com/custodela/machina:web-11 .
45+
# - docker build -f Dockerfile-cmd -t registry.gitlab.com/custodela/machina:cmd .
46+
# - docker build -f Dockerfile-cmd-11 -t registry.gitlab.com/custodela/machina:cmd-11 .
47+
# - docker push registry.gitlab.com/custodela/machina
48+
# dependencies:
49+
# - gradle-build
50+
# only:
51+
# - master
52+
53+
package-docker-hub:
54+
stage: package
55+
script:
56+
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
57+
- docker build -t ${CI_REGISTRY_IMAGE} .
58+
- docker build -t ${CI_REGISTRY_IMAGE}:web .
59+
- docker build -f Dockerfile-11 -t ${CI_REGISTRY_IMAGE}:web-11 .
60+
- docker build -f Dockerfile-cmd -t ${CI_REGISTRY_IMAGE}:cmd .
61+
- docker build -f Dockerfile-cmd-11 -t ${CI_REGISTRY_IMAGE}:cmd-11 .
62+
- docker push ${CI_REGISTRY_IMAGE}
63+
dependencies:
64+
- gradle-build
65+
only:
66+
- master
67+
68+
#package-heroku:
69+
# stage: package
70+
# script:
71+
# - docker login --username=_ --password=${HEROKU_API_KEY} registry.heroku.com
72+
# #- docker build -t registry.heroku.com/custodela-machina/web .
73+
# - docker build -f Dockerfile-11 -t registry.heroku.com/custodela-machina/web .
74+
# - docker push registry.heroku.com/custodela-machina/web
75+
# dependencies:
76+
# - gradle-build
77+
# only:
78+
# - master
79+
80+
#deploy-heroku-stg:
81+
# stage: deploy-stg
82+
# image: ubuntu
83+
# script:
84+
# - apt-get update
85+
# - apt-get install curl gnupg -y
86+
# - curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
87+
# - heroku container:push web --app custodela-machina
88+
#xxxx - heroku container:release web --app custodela-machina
89+
# only:
90+
# - master

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM openjdk:8
2+
VOLUME /tmp
3+
ADD build/libs/cx-flow-1.0.jar //
4+
ENTRYPOINT ["/usr/bin/java"]
5+
CMD ["-Xms512m", "-Xmx2048m","-Djava.security.egd=file:/dev/./urandom", "-jar", "/cx-flow-1.0.jar"]
6+
EXPOSE 8080:8080

Dockerfile-11

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM openjdk:11
2+
VOLUME /tmp
3+
ADD build/libs/cx-flow-11-1.0.jar //
4+
ENTRYPOINT ["/usr/bin/java"]
5+
CMD ["-Xms256m", "-Xmx500m","-Djava.security.egd=file:/dev/./urandom", "-jar", "/cx-flow-11-1.0.jar"]
6+
EXPOSE 8080:8080

Dockerfile-cmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM openjdk:8
2+
VOLUME /tmp
3+
ADD build/libs/cx-flow-cmd-1.0.jar //
4+
ENTRYPOINT ["/usr/bin/java"]
5+
CMD ["-Xms512m", "-Xmx2048m","-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=cmd", "-jar", "/cx-flow-cmd-1.0.jar"]

Dockerfile-cmd-11

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM openjdk:11
2+
VOLUME /tmp
3+
ADD build/libs/cx-flow-cmd-11-1.0.jar //
4+
ENTRYPOINT ["/usr/bin/java"]
5+
CMD ["-Xms256m", "-Xmx500m","-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=cmd", "-jar", "/cx-flow-cmd-11-1.0.jar"]

README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

build-11.gradle

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
buildscript {
2+
ext {
3+
springBootVersion = '2.0.5.RELEASE'
4+
sonarqubeVersion = '2.5'
5+
atlassianVersion = "5.0.4"
6+
atlassianFugueVersion = "2.2.1"
7+
mainClass='com.custodela.machina.MachinaApplication'
8+
}
9+
repositories {
10+
mavenCentral()
11+
maven {
12+
url = 'https://maven.atlassian.com/content/repositories/atlassian-public'
13+
}
14+
}
15+
dependencies {
16+
classpath "com.github.ksoichiro:gradle-build-info-plugin:+"
17+
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
18+
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:${sonarqubeVersion}"
19+
}
20+
}
21+
22+
apply plugin: 'java'
23+
apply plugin: 'eclipse'
24+
apply plugin: 'org.springframework.boot'
25+
apply plugin: 'io.spring.dependency-management'
26+
27+
group = 'com.custodela'
28+
version = '1.0'
29+
sourceCompatibility = 1.8
30+
31+
repositories {
32+
mavenCentral()
33+
maven {
34+
url = 'https://maven.atlassian.com/content/repositories/atlassian-public'
35+
}
36+
}
37+
38+
dependencies {
39+
compile('org.springframework.boot:spring-boot-starter-actuator')
40+
compile('org.springframework.boot:spring-boot-starter-web')
41+
compile ('commons-codec:commons-codec:1.11')
42+
compile ('commons-io:commons-io:2.6')
43+
compile ('org.json:json:20171018')
44+
compile ('org.springframework.boot:spring-boot-starter-web-services')
45+
compile ('org.springframework.boot:spring-boot-starter-mail')
46+
compile ('org.springframework.boot:spring-boot-starter-thymeleaf')
47+
compile ("com.atlassian.fugue:fugue:${atlassianFugueVersion}")
48+
compile ("com.atlassian.jira:jira-rest-java-client-core:${atlassianVersion}")
49+
compile ("com.atlassian.jira:jira-rest-java-client-api:${atlassianVersion}")
50+
compile ("org.thymeleaf:thymeleaf:3.0.9.RELEASE")
51+
compile group: 'com.sun.xml.bind', name: 'jaxb-impl', version: '2.4.0-b180830.0438'
52+
compile group: 'javax.xml.ws', name: 'jaxws-api', version: '2.3.1'
53+
compile group: 'com.sun.xml.bind', name: 'jaxb-core', version: '2.3.0.1'
54+
compile group: 'com.sun.xml.messaging.saaj', name: 'saaj-impl', version: '1.4.0'
55+
compileOnly ('org.springframework.boot:spring-boot-configuration-processor')
56+
57+
runtime('org.springframework.boot:spring-boot-devtools')
58+
testCompile('org.springframework.boot:spring-boot-starter-test')
59+
60+
compileJava.dependsOn(processResources)
61+
}
62+
63+
springBoot {
64+
mainClassName = "${mainClass}"
65+
buildInfo()
66+
}
67+
68+
configurations {
69+
archivesBaseName = 'cx-flow-11'
70+
}
71+
72+
bootJar {
73+
mainClassName = "${mainClass}"
74+
}

build-cmd-11.gradle

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
buildscript {
2+
ext {
3+
springBootVersion = '2.0.5.RELEASE'
4+
sonarqubeVersion = '2.5'
5+
atlassianVersion = "5.0.4"
6+
atlassianFugueVersion = "2.2.1"
7+
mainClass='com.custodela.machina.MachinaApplication'
8+
}
9+
repositories {
10+
mavenCentral()
11+
maven {
12+
url = 'https://maven.atlassian.com/content/repositories/atlassian-public'
13+
}
14+
}
15+
dependencies {
16+
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
17+
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:${sonarqubeVersion}"
18+
}
19+
}
20+
21+
apply plugin: 'java'
22+
apply plugin: 'eclipse'
23+
apply plugin: 'org.springframework.boot'
24+
apply plugin: 'io.spring.dependency-management'
25+
26+
27+
group = 'com.custodela'
28+
version = '1.0'
29+
sourceCompatibility = 1.8
30+
31+
repositories {
32+
mavenCentral()
33+
maven {
34+
url = 'https://maven.atlassian.com/content/repositories/atlassian-public'
35+
}
36+
}
37+
38+
dependencies {
39+
compile('org.springframework.boot:spring-boot-starter-actuator')
40+
compile('org.springframework.boot:spring-boot-starter-web')
41+
compile ('commons-codec:commons-codec:1.11')
42+
compile ('commons-io:commons-io:2.6')
43+
compile ('org.json:json:20171018')
44+
compile ('org.springframework.boot:spring-boot-starter-web-services')
45+
compile ('org.springframework.boot:spring-boot-starter-mail')
46+
compile ('org.springframework.boot:spring-boot-starter-thymeleaf')
47+
compile ("com.atlassian.fugue:fugue:${atlassianFugueVersion}")
48+
compile ("com.atlassian.jira:jira-rest-java-client-core:${atlassianVersion}")
49+
compile ("com.atlassian.jira:jira-rest-java-client-api:${atlassianVersion}")
50+
compile ("org.thymeleaf:thymeleaf:3.0.9.RELEASE")
51+
compile group: 'com.sun.xml.bind', name: 'jaxb-impl', version: '2.4.0-b180830.0438'
52+
compile group: 'javax.xml.ws', name: 'jaxws-api', version: '2.3.1'
53+
compile group: 'com.sun.xml.bind', name: 'jaxb-core', version: '2.3.0.1'
54+
compile group: 'com.sun.xml.messaging.saaj', name: 'saaj-impl', version: '1.4.0'
55+
compileOnly ('org.springframework.boot:spring-boot-configuration-processor')
56+
runtime('org.springframework.boot:spring-boot-devtools')
57+
testCompile('org.springframework.boot:spring-boot-starter-test')
58+
59+
compileJava.dependsOn(processResources)
60+
}
61+
62+
springBoot {
63+
mainClassName = "${mainClass}"
64+
}
65+
66+
configurations {
67+
archivesBaseName = 'cx-flow-cmd-11'
68+
}
69+
70+
/*configurations {
71+
runtime.exclude module: 'spring-boot-starter-tomcat'
72+
compile.exclude module: 'spring-boot-starter-tomcat'
73+
compile.exclude group: 'org.apache.tomcat'
74+
}*/

build-cmd.gradle

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
buildscript {
2+
ext {
3+
springBootVersion = '2.0.5.RELEASE'
4+
sonarqubeVersion = '2.5'
5+
atlassianVersion = "5.0.4"
6+
atlassianFugueVersion = "2.2.1"
7+
mainClass='com.custodela.machina.MachinaApplication'
8+
}
9+
repositories {
10+
mavenCentral()
11+
maven {
12+
url = 'https://maven.atlassian.com/content/repositories/atlassian-public'
13+
}
14+
}
15+
dependencies {
16+
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
17+
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:${sonarqubeVersion}"
18+
}
19+
}
20+
21+
apply plugin: 'java'
22+
apply plugin: 'eclipse'
23+
apply plugin: 'org.springframework.boot'
24+
apply plugin: 'io.spring.dependency-management'
25+
26+
27+
group = 'com.custodela'
28+
version = '1.0'
29+
sourceCompatibility = 1.8
30+
31+
repositories {
32+
mavenCentral()
33+
maven {
34+
url = 'https://maven.atlassian.com/content/repositories/atlassian-public'
35+
}
36+
}
37+
38+
dependencies {
39+
compile('org.springframework.boot:spring-boot-starter-actuator')
40+
compile('org.springframework.boot:spring-boot-starter-web')
41+
compile ('commons-codec:commons-codec:1.11')
42+
compile ('commons-io:commons-io:2.6')
43+
compile ('org.json:json:20171018')
44+
compile ('org.springframework.boot:spring-boot-starter-web-services')
45+
compile ('org.springframework.boot:spring-boot-starter-mail')
46+
compile ('org.springframework.boot:spring-boot-starter-thymeleaf')
47+
compile ("com.atlassian.fugue:fugue:${atlassianFugueVersion}")
48+
compile ("com.atlassian.jira:jira-rest-java-client-core:${atlassianVersion}")
49+
compile ("com.atlassian.jira:jira-rest-java-client-api:${atlassianVersion}")
50+
compile ("org.thymeleaf:thymeleaf:3.0.9.RELEASE")
51+
compileOnly ('org.springframework.boot:spring-boot-configuration-processor')
52+
runtime('org.springframework.boot:spring-boot-devtools')
53+
testCompile('org.springframework.boot:spring-boot-starter-test')
54+
compileJava.dependsOn(processResources)
55+
}
56+
57+
springBoot {
58+
mainClassName = "${mainClass}"
59+
}
60+
61+
configurations {
62+
archivesBaseName = 'cx-flow-cmd'
63+
}
64+
65+
/*configurations {
66+
runtime.exclude module: 'spring-boot-starter-tomcat'
67+
compile.exclude module: 'spring-boot-starter-tomcat'
68+
compile.exclude group: 'org.apache.tomcat'
69+
}*/

0 commit comments

Comments
 (0)