Skip to content
This repository was archived by the owner on Mar 18, 2020. It is now read-only.

Commit f3135ab

Browse files
committed
Updated to Spring Cloud Deployer for OpenShift 1.1.0 release
Added documentation. Closes #1, closes #7 Moved configuration into ConfigMaps. Closes #3 Added OpenShift templates for infrastructure components. Closes #2 Updated README. Closes #6
1 parent 256c8b2 commit f3135ab

File tree

81 files changed

+6880
-97
lines changed

Some content is hidden

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

81 files changed

+6880
-97
lines changed

README.md

+8-35
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,22 @@ This project provides a Spring Cloud Data Flow server for deployments to OpenShi
44
[Spring Cloud Deployer OpenShift](https://github.com/donovanmuller/spring-cloud-deployer-openshift)
55
implementation of the [Spring Cloud Deployer](https://github.com/spring-cloud/spring-cloud-deployer) SPI.
66

7+
Please refer to the reference documentation on how to get started.
8+
79
## Building
810

9-
You must clone and build the `spring-cloud-deployer-openshift` and
10-
`spring-cloud-dataflow-server-openshift` projects:
11+
Clone the repo and type
1112

12-
```
13-
$ git clone https://github.com/donovanmuller/spring-cloud-deployer-openshift.git && \
14-
cd spring-cloud-deployer-openshift && \
15-
./mvnw install
16-
17-
$ git clone https://github.com/donovanmuller/spring-cloud-dataflow-server-openshift.git && \
18-
cd spring-cloud-dataflow-server-openshift && \
19-
./mvnw package
13+
```console
14+
$ ./mvnw clean install
2015
```
2116

22-
## Running
17+
To build the docker image for the Data Flow Server
2318

24-
The Data Flow OpenShift server requires a running OpenShift 3 instance.
25-
To start the Spring Cloud Data Flow OpenShift server, provide the following properties at a minimum:
26-
27-
```
28-
$ cd spring-cloud-deployer-openshift/target
29-
$ java -Dopenshift.url=https://172.28.128.4:8443 \
30-
-Dkubernetes.master=https://172.28.128.4:8443 \
31-
-Dkubernetes.trust.certificates=true \
32-
-Dkubernetes.auth.basic.username=admin \
33-
-Dkubernetes.auth.basic.password=admin \
34-
-jar spring-cloud-dataflow-server-openshift-1.1.0.BUILD-SNAPSHOT.jar \
35-
--spring.cloud.deployer.kubernetes.namespace=scdf-apps \
36-
--maven.resolvePom=true \
37-
--maven.remote-repositories.spring.url=http://repo.spring.io/snapshots
19+
```console
20+
$ ./mvnw package docker:build -pl :spring-cloud-dataflow-server-openshift
3821
```
3922

40-
where `https://172.28.128.4:8443` is the URL of your OpenShift master instance.
41-
The `--spring.cloud.deployer.kubernetes.namespace` property is optional and indicates the project to deploy applications too.
42-
The `default` project is used in this properties absence.
43-
44-
## Deploying
45-
46-
You can follow either the [Local](http://docs.spring.io/spring-cloud-dataflow/docs/current-SNAPSHOT/reference/htmlsingle/#spring-cloud-dataflow-register-apps)
47-
or [Kubernetes](http://docs.spring.io/spring-cloud-dataflow-server-kubernetes/docs/current-SNAPSHOT/reference/htmlsingle/#_deploying_streams_on_kubernetes)
48-
documentation on registering and app, creating a stream/task definition and deploying the apps.
49-
5023
## Further Reading
5124

5225
Please see the following posts for more information:

pom.xml

+56-3
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,24 @@
1717
<packaging>pom</packaging>
1818

1919
<name>Spring Cloud Data Flow Server for OpenShift</name>
20-
<description>A Spring Cloud Data Flow Deployer Server for OpenShift 3</description>
20+
<description>Spring Cloud Data Flow Server for OpenShift 3</description>
21+
22+
<scm>
23+
<connection>scm:git:[email protected]:donovanmuller/spring-cloud-dataflow-server-openshift.git</connection>
24+
<developerConnection>scm:git:[email protected]:donovanmuller/spring-cloud-dataflow-server-openshift.git</developerConnection>
25+
<url>https://github.com/donovanmuller/spring-cloud-dataflow-server-openshift</url>
26+
<tag>HEAD</tag>
27+
</scm>
2128

2229
<modules>
2330
<module>spring-cloud-dataflow-server-openshift-autoconfig</module>
2431
<module>spring-cloud-dataflow-server-openshift</module>
32+
<module>spring-cloud-dataflow-server-openshift-docs</module>
2533
</modules>
2634

2735
<properties>
28-
<spring-cloud-deployer-openshift.version>1.1.0.BUILD-SNAPSHOT</spring-cloud-deployer-openshift.version>
29-
<spring-cloud-dataflow.version>1.1.0.BUILD-SNAPSHOT</spring-cloud-dataflow.version>
36+
<spring-cloud-deployer-openshift.version>1.1.0.RELEASE</spring-cloud-deployer-openshift.version>
37+
<spring-cloud-dataflow.version>1.1.0.RELEASE</spring-cloud-dataflow.version>
3038
<spring-cloud-deployer-spi.version>1.1.0.RC1</spring-cloud-deployer-spi.version>
3139
<spring-cloud-kubernetes.version>0.1.3</spring-cloud-kubernetes.version>
3240
<netflix-archaius.version>0.7.4</netflix-archaius.version>
@@ -49,15 +57,32 @@
4957
<artifactId>spring-cloud-deployer-spi</artifactId>
5058
<version>${spring-cloud-deployer-spi.version}</version>
5159
</dependency>
60+
<dependency>
61+
<groupId>com.squareup.okhttp3</groupId>
62+
<artifactId>okhttp</artifactId>
63+
<version>3.4.1</version>
64+
</dependency>
5265
<dependency>
5366
<groupId>io.fabric8</groupId>
5467
<artifactId>spring-cloud-starter-kubernetes</artifactId>
5568
<version>${spring-cloud-kubernetes.version}</version>
69+
<exclusions>
70+
<exclusion>
71+
<groupId>io.fabric8</groupId>
72+
<artifactId>kubernetes-client</artifactId>
73+
</exclusion>
74+
</exclusions>
5675
</dependency>
5776
<dependency>
5877
<groupId>io.fabric8</groupId>
5978
<artifactId>spring-cloud-kubernetes-archaius</artifactId>
6079
<version>${spring-cloud-kubernetes.version}</version>
80+
<exclusions>
81+
<exclusion>
82+
<groupId>io.fabric8</groupId>
83+
<artifactId>kubernetes-client</artifactId>
84+
</exclusion>
85+
</exclusions>
6186
</dependency>
6287
<dependency>
6388
<groupId>com.netflix.archaius</groupId>
@@ -142,8 +167,36 @@
142167
</execution>
143168
</executions>
144169
</plugin>
170+
<plugin>
171+
<groupId>org.apache.maven.plugins</groupId>
172+
<artifactId>maven-release-plugin</artifactId>
173+
<version>2.5.3</version>
174+
<configuration>
175+
<autoVersionSubmodules>true</autoVersionSubmodules>
176+
</configuration>
177+
</plugin>
178+
<plugin>
179+
<artifactId>maven-javadoc-plugin</artifactId>
180+
<configuration>
181+
<skip>true</skip>
182+
</configuration>
183+
</plugin>
184+
<plugin>
185+
<artifactId>maven-site-plugin</artifactId>
186+
<configuration>
187+
<skip>true</skip>
188+
<skipDeploy>true</skipDeploy>
189+
</configuration>
190+
</plugin>
145191
</plugins>
146192
</build>
147193
</profile>
148194
</profiles>
195+
196+
<distributionManagement>
197+
<repository>
198+
<id>bintray-switchbit-public</id>
199+
<url>https://api.bintray.com/maven/donovanmuller/switchbit-public/spring-cloud-dataflow-server-openshift/;publish=1</url>
200+
</repository>
201+
</distributionManagement>
149202
</project>

spring-cloud-dataflow-server-openshift-autoconfig/pom.xml

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
<artifactId>spring-cloud-dataflow-server-openshift-autoconfig</artifactId>
1414

15+
<name>Spring Auto Configuration of Data Flow Server for OpenShift</name>
16+
1517
<dependencies>
1618
<dependency>
1719
<groupId>org.springframework.cloud</groupId>

spring-cloud-dataflow-server-openshift-autoconfig/src/main/java/org/springframework/cloud/dataflow/server/openshift/OpenShiftDataFlowServerAutoConfiguration.java

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.springframework.cloud.deployer.resource.support.DelegatingResourceLoader;
2828
import org.springframework.context.annotation.Bean;
2929
import org.springframework.context.annotation.Configuration;
30+
import org.springframework.context.annotation.Primary;
3031
import org.springframework.core.Ordered;
3132
import org.springframework.core.io.ResourceLoader;
3233

Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
org.sspringframework.boot.autoconfigure.EnableAutoConfiguration=\
1+
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
22
org.springframework.cloud.dataflow.server.openshift.OpenShiftDataFlowServerAutoConfiguration

0 commit comments

Comments
 (0)