Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
274 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
/.settings/ | ||
/.project | ||
/logs/ | ||
.vagrant | ||
dump.rdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
echo "Build all services..." | ||
mvn clean install | ||
cd movie-database-shop-app | ||
bower install | ||
grunt | ||
sudo chmod 777 /opt/moviedatabase | ||
rm -rf /opt/moviedatabase/shop-app | ||
cp -R dist/. /opt/moviedatabase/shop-app | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Security Storage | ||
redis: | ||
image: redis | ||
movies: | ||
build: movie-database-movies | ||
ports: | ||
- "8080:8080" | ||
links: | ||
- redis | ||
- monitoring | ||
- navigation | ||
actors: | ||
build: movie-database-actors | ||
ports: | ||
- "8082:8082" | ||
links: | ||
- redis | ||
- monitoring | ||
- navigation | ||
navigation: | ||
build: movie-database-navigation | ||
ports: | ||
- "8081:8081" | ||
links: | ||
- redis | ||
- monitoring | ||
shop: | ||
build: movie-database-shop-rest | ||
ports: | ||
- "8084:8084" | ||
links: | ||
- redis | ||
- monitoring | ||
shopgui: | ||
build: movie-database-shop-app | ||
ports: | ||
- "80:80" | ||
links: | ||
- movies | ||
- actors | ||
- navigation | ||
- shop | ||
monitoring: | ||
build: movie-database-monitoring | ||
ports: | ||
- "8083:8083" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM java:7 | ||
MAINTAINER Dennis Schulte <mail@dennis-schulte.de> | ||
|
||
# install updates | ||
RUN apt-get update && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/* | ||
|
||
# default log directory | ||
#VOLUME ["/data/log"] | ||
|
||
# copy spring boot jar as 'service.jar' | ||
COPY target/movie-database-*.jar /service.jar | ||
|
||
# service port | ||
EXPOSE 8082 | ||
|
||
# define default jar name | ||
ENTRYPOINT java $JVM_OPTS -jar /service.jar $ARGS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM java:7 | ||
MAINTAINER Dennis Schulte <mail@dennis-schulte.de> | ||
|
||
# install updates | ||
RUN apt-get update && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/* | ||
|
||
# default log directory | ||
#VOLUME ["/data/log"] | ||
|
||
# copy spring boot jar as 'service.jar' | ||
COPY target/movie-database-*.jar /service.jar | ||
|
||
# service port | ||
EXPOSE 8083 | ||
|
||
# define default jar name | ||
ENTRYPOINT java $JVM_OPTS -jar /service.jar $ARGS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM java:7 | ||
MAINTAINER Dennis Schulte <mail@dennis-schulte.de> | ||
|
||
# install updates | ||
RUN apt-get update && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/* | ||
|
||
# default log directory | ||
#VOLUME ["/data/log"] | ||
|
||
# copy spring boot jar as 'service.jar' | ||
COPY target/movie-database-*.jar /service.jar | ||
|
||
# service port | ||
EXPOSE 8080 | ||
|
||
# define default jar name | ||
ENTRYPOINT java $JVM_OPTS -jar /service.jar $ARGS |
6 changes: 3 additions & 3 deletions
6
movie-database-movies/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
spring.application.name=@pom.artifactId@ | ||
info.version=@pom.version@ | ||
info.stage=test | ||
moviedatabase.navigation.url.base=http://localhost:8081 | ||
moviedatabase.navigation.url.base=http://navigation:8081 | ||
moviedatabase.actors.url.base=http://moviedatabase.com/actor-app | ||
spring.thymeleaf.cache=false | ||
spring.redis.host=192.168.59.103 | ||
spring.redis.host=redis | ||
server.context-path=/movie-app | ||
spring.boot.admin.url=http://localhost:8083 | ||
spring.boot.admin.url=http://monitoring:8083 | ||
spring.boot.admin.client.url=http://moviedatabase.com/movie-app | ||
http.mappers.jsonPrettyPrint=true | ||
logging.file=/opt/moviedatabase/logs/@pom.artifactId@/@pom.artifactId@.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#FROM registry.hub.docker.com/_/java/:oracle-java7 | ||
FROM java:7 | ||
MAINTAINER Dennis Schulte <mail@dennis-schulte.de> | ||
|
||
# install updates | ||
RUN apt-get update && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/* | ||
|
||
# default log directory | ||
#VOLUME ["/data/log"] | ||
|
||
# copy spring boot jar as 'service.jar' | ||
COPY target/movie-database-*.jar /service.jar | ||
|
||
# service port | ||
EXPOSE 8081 | ||
|
||
# define default jar name | ||
ENTRYPOINT java $JVM_OPTS -jar /service.jar $ARGS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM nginx:1.7.9 | ||
MAINTAINER Dennis Schulte <mail@dennis-schulte.de> | ||
|
||
RUN rm /etc/nginx/conf.d/* | ||
|
||
COPY moviedatabase.conf /etc/nginx/conf.d/moviedatabase.conf | ||
COPY dist/. /usr/share/nginx/html/shop-app/ | ||
|
||
COPY run.sh /usr/local/bin/ | ||
|
||
RUN chmod 755 /usr/local/bin/run.sh | ||
|
||
# service port | ||
EXPOSE 80 | ||
|
||
ENTRYPOINT ["/usr/local/bin/run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
server { | ||
listen 80; | ||
server_name moviedatabase.com; | ||
|
||
location / { | ||
proxy_set_header Host $http_host; | ||
proxy_pass http://movies:8080/movie-app/; | ||
} | ||
|
||
location /movie-app/ { | ||
proxy_set_header Host $http_host; | ||
proxy_pass http://movies:8080/movie-app/; | ||
} | ||
|
||
location /actor-app/ { | ||
proxy_set_header Host $http_host; | ||
proxy_pass http://actors:8082/actor-app/; | ||
} | ||
|
||
location /shop-rest/ { | ||
proxy_set_header Host $http_host; | ||
proxy_pass http://shop:8084/shop-rest/; | ||
} | ||
|
||
location /navigation-app/ { | ||
proxy_set_header Host $http_host; | ||
proxy_pass http://navigation:8081/; | ||
} | ||
|
||
location /shop-app/ { | ||
root /usr/share/nginx/html; | ||
ssi on; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# start nginx | ||
nginx -g "daemon off;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM java:7 | ||
MAINTAINER Dennis Schulte <mail@dennis-schulte.de> | ||
|
||
# install updates | ||
RUN apt-get update && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/* | ||
|
||
# default log directory | ||
#VOLUME ["/data/log"] | ||
|
||
# copy spring boot jar as 'service.jar' | ||
COPY target/movie-database-*.jar /service.jar | ||
|
||
# service port | ||
EXPOSE 8084 | ||
|
||
# define default jar name | ||
ENTRYPOINT java $JVM_OPTS -jar /service.jar $ARGS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
boot2docker stop | ||
pkill -f redis-server | ||
sudo nginx -s stop | ||
pkill -f movie-database |
Oops, something went wrong.