removing unused module
This commit is contained in:
parent
61ea026ea9
commit
09b7c6e822
@ -1,27 +0,0 @@
|
|||||||
## Spring Cloud Config ##
|
|
||||||
|
|
||||||
To get this example working, you have to initialize a new *Git* repository in
|
|
||||||
the ```client-config``` directory first *and* you have to set the environment variable
|
|
||||||
```CONFIG_REPO``` to an absolute path of that directory.
|
|
||||||
|
|
||||||
```
|
|
||||||
$> cd client-config
|
|
||||||
$> git init
|
|
||||||
$> git add .
|
|
||||||
$> git commit -m 'Initial commit'
|
|
||||||
$> export CONFIG_REPO=$(pwd)
|
|
||||||
```
|
|
||||||
|
|
||||||
Then you're able to run the examples with ```mvn install spring-boot:run```.
|
|
||||||
|
|
||||||
### Docker ###
|
|
||||||
|
|
||||||
To get the *Docker* examples working, you have to repackage the ```spring-cloud-config-server```
|
|
||||||
and ```spring-cloud-config-client``` modules first:
|
|
||||||
|
|
||||||
```
|
|
||||||
$> mvn install spring-boot:repackage
|
|
||||||
```
|
|
||||||
|
|
||||||
Don't forget to download the *Java JCE* package from
|
|
||||||
(Oracle)[http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html].
|
|
@ -1,6 +0,0 @@
|
|||||||
FROM alpine-java:base
|
|
||||||
MAINTAINER baeldung.com
|
|
||||||
RUN apk --no-cache add netcat-openbsd
|
|
||||||
COPY files/spring-cloud-config-client-1.0.0-SNAPSHOT.jar /opt/spring-cloud/lib/config-client.jar
|
|
||||||
COPY files/config-client-entrypoint.sh /opt/spring-cloud/bin/
|
|
||||||
RUN chmod 755 /opt/spring-cloud/bin/config-client-entrypoint.sh
|
|
@ -1,9 +0,0 @@
|
|||||||
FROM alpine-java:base
|
|
||||||
MAINTAINER baeldung.com
|
|
||||||
COPY files/spring-cloud-config-server-1.0.0-SNAPSHOT.jar /opt/spring-cloud/lib/config-server.jar
|
|
||||||
ENV SPRING_APPLICATION_JSON='{"spring": {"cloud": {"config": {"server": \
|
|
||||||
{"git": {"uri": "/var/lib/spring-cloud/config-repo", "clone-on-start": true}}}}}}'
|
|
||||||
ENTRYPOINT ["/usr/bin/java"]
|
|
||||||
CMD ["-jar", "/opt/spring-cloud/lib/config-server.jar"]
|
|
||||||
VOLUME /var/lib/spring-cloud/config-repo
|
|
||||||
EXPOSE 8888
|
|
2
spring-cloud-config/docker/files/.gitignore
vendored
2
spring-cloud-config/docker/files/.gitignore
vendored
@ -1,2 +0,0 @@
|
|||||||
/UnlimitedJCEPolicyJDK8
|
|
||||||
/*.jar
|
|
@ -1,8 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
while ! nc -z config-server 8888 ; do
|
|
||||||
echo "Waiting for upcoming Config Server"
|
|
||||||
sleep 2
|
|
||||||
done
|
|
||||||
|
|
||||||
java -jar /opt/spring-cloud/lib/config-client.jar
|
|
@ -1,52 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
|
|
||||||
<groupId>com.baeldung.spring.cloud</groupId>
|
|
||||||
<artifactId>spring-cloud-config</artifactId>
|
|
||||||
<packaging>pom</packaging>
|
|
||||||
|
|
||||||
<modules>
|
|
||||||
<module>spring-cloud-config-server</module>
|
|
||||||
<module>spring-cloud-config-client</module>
|
|
||||||
</modules>
|
|
||||||
|
|
||||||
<parent>
|
|
||||||
<groupId>com.baeldung</groupId>
|
|
||||||
<artifactId>parent-modules</artifactId>
|
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
|
||||||
<relativePath>..</relativePath>
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<dependencyManagement>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-parent</artifactId>
|
|
||||||
<version>1.4.0.RELEASE</version>
|
|
||||||
<type>pom</type>
|
|
||||||
<scope>import</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.cloud</groupId>
|
|
||||||
<artifactId>spring-cloud-dependencies</artifactId>
|
|
||||||
<version>Brixton.SR4</version>
|
|
||||||
<type>pom</type>
|
|
||||||
<scope>import</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</dependencyManagement>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<pluginManagement>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
||||||
<version>1.4.0.RELEASE</version>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</pluginManagement>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
Loading…
x
Reference in New Issue
Block a user